git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1740f3
)
s3:locking: Add missing NULL check
author
Andreas Schneider
<asn@samba.org>
Mon, 4 Feb 2019 16:19:55 +0000
(17:19 +0100)
committer
Jeremy Allison
<jra@samba.org>
Tue, 12 Feb 2019 22:02:07 +0000
(23:02 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/locking/locking.c
patch
|
blob
|
history
diff --git
a/source3/locking/locking.c
b/source3/locking/locking.c
index ae5f0bbcf339f300eb7b1f608c3049d05bf78e2b..d4c3b32be7f60aaab881931c746dd7788921b3cb 100644
(file)
--- a/
source3/locking/locking.c
+++ b/
source3/locking/locking.c
@@
-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);
}