Skip to content

Commit

Permalink
Fix wrong properties used for "value" ("name" is reused instead of "v…
Browse files Browse the repository at this point in the history
…alue" for the buffer and length)
  • Loading branch information
Olivier Gagnon committed Nov 26, 2021
1 parent 895ac87 commit 547e76e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/plugins/filed/python/module/bareosfd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1038,8 +1038,8 @@ static inline bool PyXattrPacketToNative(PyXattrPacket* pXattrPacket,
char* buf;

xp->value_length = PyByteArray_Size(pXattrPacket->value);
if (xp->name_length <= 0
|| !(buf = PyByteArray_AsString(pXattrPacket->name))) {
if (xp->value_length <= 0
|| !(buf = PyByteArray_AsString(pXattrPacket->value))) {
return false;
}

Expand Down

0 comments on commit 547e76e

Please sign in to comment.