From: Jeremy Allison Date: Wed, 14 Jul 2004 18:29:12 +0000 (+0000) Subject: r1501: One more check for option != 0. X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5966 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a6d0452a2d71201309a5abbe3ebc161ae75b17b8;p=thirdparty%2Fsamba.git r1501: One more check for option != 0. Jeremy. --- diff --git a/source/rpc_server/srv_spoolss_nt.c b/source/rpc_server/srv_spoolss_nt.c index 08553bfe654..e3c9ff08d93 100644 --- a/source/rpc_server/srv_spoolss_nt.c +++ b/source/rpc_server/srv_spoolss_nt.c @@ -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);