Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Sun Dec 10 00:46:26 CET 2017 on sn-devel-144
found_recs = IVAL(buf, 0);
+ buf += sizeof(uint32_t);
+ buflen -= sizeof(uint32_t);
if (found_recs > buflen/G_LOCK_REC_LENGTH) {
return false;
}
- buf += sizeof(uint32_t);
- buflen -= sizeof(uint32_t);
data_ofs = found_recs * G_LOCK_REC_LENGTH;
*lck = (struct g_lock) {