git.samba.org
/
metze
/
samba
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s3: Fix a crash in notify_remove_onelevel when "change notify = no"
[metze/samba/wip.git]
/
source3
/
smbd
/
notify_internal.c
diff --git
a/source3/smbd/notify_internal.c
b/source3/smbd/notify_internal.c
index 3ee8aed44fc673b4e99e7ca0e1ab2ec40b39474b..dcd92f561fad1537ef21d9b7d01fb3ef5bd6a034 100644
(file)
--- a/
source3/smbd/notify_internal.c
+++ b/
source3/smbd/notify_internal.c
@@
-545,6
+545,10
@@
NTSTATUS notify_remove_onelevel(struct notify_context *notify,
NTSTATUS status;
int i;
+ if (notify == NULL) {
+ return NT_STATUS_NOT_IMPLEMENTED;
+ }
+
array = talloc_zero(talloc_tos(), struct notify_entry_array);
if (array == NULL) {
return NT_STATUS_NO_MEMORY;