diff options
author | Volker Lendecke <vl@samba.org> | 2009-04-30 12:24:51 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-04-30 12:25:46 +0200 |
commit | 3b666bf0f9691e552999b655b2feca71048aa640 (patch) | |
tree | a9256bf30e80ba51c5b430b9c8d3178c21e12dc5 | |
parent | d22965e2e596c8ad78f5330398d43d96bf564773 (diff) | |
download | samba-3b666bf0f9691e552999b655b2feca71048aa640.tar.gz samba-3b666bf0f9691e552999b655b2feca71048aa640.tar.bz2 samba-3b666bf0f9691e552999b655b2feca71048aa640.zip |
Fix notify_onelevel: notify is not necessarily enabled
Thanks to Günther Deschner!
Volker
-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 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; |