From a6d0452a2d71201309a5abbe3ebc161ae75b17b8 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 14 Jul 2004 18:29:12 +0000 Subject: [PATCH] r1501: One more check for option != 0. Jeremy. --- source/rpc_server/srv_spoolss_nt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.11.4.GIT