git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b479711
)
r1501: One more check for option != 0.
author
Jeremy Allison
<jra@samba.org>
Wed, 14 Jul 2004 18:29:12 +0000
(18:29 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 15:52:13 +0000
(10:52 -0500)
Jeremy.
source/rpc_server/srv_spoolss_nt.c
patch
|
blob
|
history
diff --git
a/source/rpc_server/srv_spoolss_nt.c
b/source/rpc_server/srv_spoolss_nt.c
index 08553bfe654e97a5377c9662ca0bbbc227680e1a..e3c9ff08d93d18e92a0429ee6c924a4675d36e0b 100644
(file)
--- 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);