summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-07-14 18:29:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:13 -0500
commitde22eab16dad4372a12c2e95f5fdb5fe9a8d162b (patch)
tree9d42aac3aab6bfed2612e9bc2719f3c51cc714b2 /source3
parente571c8a8ac1f3385796bbaf65d5355cb2bf76885 (diff)
downloadsamba-de22eab16dad4372a12c2e95f5fdb5fe9a8d162b.tar.gz
samba-de22eab16dad4372a12c2e95f5fdb5fe9a8d162b.tar.bz2
samba-de22eab16dad4372a12c2e95f5fdb5fe9a8d162b.zip
r1501: One more check for option != 0.
Jeremy. (This used to be commit a6d0452a2d71201309a5abbe3ebc161ae75b17b8)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c6
1 files changed, 5 insertions, 1 deletions
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);