summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-11-05 15:06:21 +0100
committerKarolin Seeger <kseeger@samba.org>2009-11-26 11:40:12 +0100
commit3484eed48d168e3e8da62d89fe4d6bcebb6bddf4 (patch)
tree6e8b76cef4bb50e97e170611266610892408bd0e /source3/smbd
parent120087b9fbc6fe646a6793c6293b2a01bc25876d (diff)
downloadsamba-3484eed48d168e3e8da62d89fe4d6bcebb6bddf4.tar.gz
s3: Fix a crash in notify_remove_onelevel when "change notify = no"
(cherry picked from commit bcdd64523497a251b51a1a6023c41cc29cc86567)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/notify_internal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/notify_internal.c b/source3/smbd/notify_internal.c
index 3f61de579de..1850e2b57f1 100644
--- 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;