diff options
author | Jeremy Allison <jra@samba.org> | 2006-03-09 17:56:16 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:11:10 -0500 |
commit | d785b61a16c6135923a5aece1536c427ba91799f (patch) | |
tree | 58cab44fa444e772109c6588c2c5a2bbb68cd977 /source3/rpc_parse | |
parent | 17c354acf32a1a538651fb35cc83cc4ae0eac36b (diff) | |
download | samba-d785b61a16c6135923a5aece1536c427ba91799f.tar.gz samba-d785b61a16c6135923a5aece1536c427ba91799f.tar.bz2 samba-d785b61a16c6135923a5aece1536c427ba91799f.zip |
r14080: Fix Coverity bug #18. Ensure non-null before ref.
Jeremy.
(This used to be commit 617c5805e59dd601b8841251032e3db4d6a64621)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r-- | source3/rpc_parse/parse_spoolss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_spoolss.c b/source3/rpc_parse/parse_spoolss.c index f79731fea2..bb33918a44 100644 --- a/source3/rpc_parse/parse_spoolss.c +++ b/source3/rpc_parse/parse_spoolss.c @@ -937,7 +937,7 @@ BOOL make_spoolss_q_addprinterex( TALLOC_CTX *mem_ctx, SPOOL_Q_ADDPRINTEREX *q_u { DEBUG(5,("make_spoolss_q_addprinterex\n")); - if (!ctr) + if (!ctr || !ctr->printers_2) return False; ZERO_STRUCTP(q_u); |