diff options
author | Volker Lendecke <vl@samba.org> | 2014-07-15 10:55:21 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-07-22 15:32:39 +0200 |
commit | bd787beee9666443bf44a6625800534e97ed0bfc (patch) | |
tree | a23e4c19f9db2e5ba020ebb6db04bf241a5dfa22 /source3 | |
parent | b3d1d56b5e41435b25eafad2b21b867192cbaecd (diff) | |
download | samba-bd787beee9666443bf44a6625800534e97ed0bfc.tar.gz |
smbd: Add comments
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/reply.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 8f9c921942a..7455da320d3 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -7580,6 +7580,9 @@ uint64_t get_lock_count(const uint8_t *data, int data_offset, if(!large_file_format) { count = (uint64_t)IVAL(data,SMB_LKLEN_OFFSET(data_offset)); } else { + /* + * No BVAL, this is reversed! + */ count = (((uint64_t) IVAL(data,SMB_LARGE_LKLEN_OFFSET_HIGH(data_offset))) << 32) | ((uint64_t) IVAL(data,SMB_LARGE_LKLEN_OFFSET_LOW(data_offset))); } @@ -7601,6 +7604,9 @@ uint64_t get_lock_offset(const uint8_t *data, int data_offset, if(!large_file_format) { offset = (uint64_t)IVAL(data,SMB_LKOFF_OFFSET(data_offset)); } else { + /* + * No BVAL, this is reversed! + */ offset = (((uint64_t) IVAL(data,SMB_LARGE_LKOFF_OFFSET_HIGH(data_offset))) << 32) | ((uint64_t) IVAL(data,SMB_LARGE_LKOFF_OFFSET_LOW(data_offset))); } |