Fix notify_onelevel: notify is not necessarily enabled
authorVolker Lendecke <vl@samba.org>
Thu, 30 Apr 2009 10:24:51 +0000 (12:24 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 28 Jul 2009 13:59:07 +0000 (15:59 +0200)
Thanks to Günther Deschner!

Volker

Signed-off-by: Michael Adam <obnox@samba.org>
source/smbd/notify_internal.c

index b28e345671de26efa6cb42940fdc48293b5a32cd..6bb9d63d7793aceb876c78f705f63a856c87ac6d 100644 (file)
@@ -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;