]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r1501: One more check for option != 0.
authorJeremy Allison <jra@samba.org>
Wed, 14 Jul 2004 18:29:12 +0000 (18:29 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:13 +0000 (10:52 -0500)
Jeremy.

source/rpc_server/srv_spoolss_nt.c

index 08553bfe654e97a5377c9662ca0bbbc227680e1a..e3c9ff08d93d18e92a0429ee6c924a4675d36e0b 100644 (file)
@@ -671,7 +671,11 @@ static BOOL is_monitoring_event(Printer_entry *p, uint16 notify_type,
         * might use the flags though instead of the NOTIFY_OPTION_INFO 
         * --jerry
         */
-        
+
+       if (!option) {
+               return False;
+       }
+
        if (p->notify.flags)
                return is_monitoring_event_flags(
                        p->notify.flags, notify_type, notify_field);