diff options
author | Volker Lendecke <vl@samba.org> | 2009-11-05 15:06:21 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-11-05 15:08:57 +0100 |
commit | b6303f03721d0a86e2e379bdb2e436e328c8f5cb (patch) | |
tree | 4e19f7cfba5207dd406797b0efaa4998b091d37d /source3/smbd | |
parent | b5afbb687d9ca0bc15f5dc59498f9d53bd8b4bf1 (diff) | |
download | samba-b6303f03721d0a86e2e379bdb2e436e328c8f5cb.tar.gz samba-b6303f03721d0a86e2e379bdb2e436e328c8f5cb.tar.bz2 samba-b6303f03721d0a86e2e379bdb2e436e328c8f5cb.zip |
s3: Fix a crash in notify_remove_onelevel when "change notify = no"
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/notify_internal.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/notify_internal.c b/source3/smbd/notify_internal.c index 3f61de579d..1850e2b57f 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; |