From 3b666bf0f9691e552999b655b2feca71048aa640 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 30 Apr 2009 12:24:51 +0200 Subject: [PATCH] Fix notify_onelevel: notify is not necessarily enabled MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Thanks to Günther Deschner! Volker --- source3/smbd/notify_internal.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source3/smbd/notify_internal.c b/source3/smbd/notify_internal.c index a42404db3e6..973db7b7b1d 100644 --- a/source3/smbd/notify_internal.c +++ b/source3/smbd/notify_internal.c @@ -786,6 +786,10 @@ void notify_onelevel(struct notify_context *notify, uint32_t action, bool have_dead_entries = false; int i; + if (notify == NULL) { + return; + } + array = talloc_zero(talloc_tos(), struct notify_entry_array); if (array == NULL) { return; -- 2.11.4.GIT