mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s3:locking: Add missing NULL check
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
b1740f3baf
commit
77dbe6b9ef
@ -150,6 +150,9 @@ bool strict_lock_check_default(files_struct *fsp, struct lock_struct *plock)
|
||||
* autocleanup. This is the slow path anyway.
|
||||
*/
|
||||
br_lck = brl_get_locks(talloc_tos(), fsp);
|
||||
if (br_lck == NULL) {
|
||||
return true;
|
||||
}
|
||||
ret = brl_locktest(br_lck, plock);
|
||||
TALLOC_FREE(br_lck);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user