From de22eab16dad4372a12c2e95f5fdb5fe9a8d162b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 14 Jul 2004 18:29:12 +0000 Subject: r1501: One more check for option != 0. Jeremy. (This used to be commit a6d0452a2d71201309a5abbe3ebc161ae75b17b8) --- source3/rpc_server/srv_spoolss_nt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 08553bfe65..e3c9ff08d9 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/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); -- cgit