s3: Fix a crash in notify_remove_onelevel when "change notify = no" 3.2.11-ctdb-68
authorVolker Lendecke <vl@samba.org>
Thu, 5 Nov 2009 14:06:21 +0000 (15:06 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 5 Nov 2009 14:33:49 +0000 (15:33 +0100)
source/smbd/notify_internal.c

index 6bb9d63d7793aceb876c78f705f63a856c87ac6d..069982ad68da97021af742ef3748a75beb718b1b 100644 (file)
@@ -545,6 +545,10 @@ NTSTATUS notify_remove_onelevel(struct notify_context *notify,
        NTSTATUS status;
        int i;
 
+       if (notify == NULL) {
+               return NT_STATUS_NOT_IMPLEMENTED;
+       }
+
        array = talloc_zero(talloc_tos(), struct notify_entry_array);
        if (array == NULL) {
                return NT_STATUS_NO_MEMORY;