git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5afbb6
)
s3: Fix a crash in notify_remove_onelevel when "change notify = no"
author
Volker Lendecke
<vl@samba.org>
Thu, 5 Nov 2009 14:06:21 +0000
(15:06 +0100)
committer
Volker Lendecke
<vl@samba.org>
Thu, 5 Nov 2009 14:08:57 +0000
(15:08 +0100)
source3/smbd/notify_internal.c
patch
|
blob
|
history
diff --git
a/source3/smbd/notify_internal.c
b/source3/smbd/notify_internal.c
index 3f61de579de0ce51ba928473155627ba894077aa..1850e2b57f1ff014039ff3ed7ccef8a6b96f078b 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;