From 33d12f632e840be3865fb9602cf3aa01bffb413c 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 Signed-off-by: Michael Adam --- source/smbd/notify_internal.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/smbd/notify_internal.c b/source/smbd/notify_internal.c index b28e345671..6bb9d63d77 100644 --- a/source/smbd/notify_internal.c +++ b/source/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.34.1