1
0
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:
Andreas Schneider 2019-02-04 17:19:55 +01:00 committed by Jeremy Allison
parent b1740f3baf
commit 77dbe6b9ef

View File

@ -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);
}