From b6303f03721d0a86e2e379bdb2e436e328c8f5cb Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 5 Nov 2009 15:06:21 +0100 Subject: s3: Fix a crash in notify_remove_onelevel when "change notify = no" --- source3/smbd/notify_internal.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/smbd') 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; -- cgit