summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-04-30 12:24:51 +0200
committerVolker Lendecke <vl@samba.org>2009-04-30 12:25:46 +0200
commit3b666bf0f9691e552999b655b2feca71048aa640 (patch)
treea9256bf30e80ba51c5b430b9c8d3178c21e12dc5 /source3/smbd
parentd22965e2e596c8ad78f5330398d43d96bf564773 (diff)
downloadsamba-3b666bf0f9691e552999b655b2feca71048aa640.tar.gz
samba-3b666bf0f9691e552999b655b2feca71048aa640.tar.bz2
samba-3b666bf0f9691e552999b655b2feca71048aa640.zip
Fix notify_onelevel: notify is not necessarily enabled
Thanks to Günther Deschner! Volker
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 a42404db3e..973db7b7b1 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;