r14080: Fix Coverity bug #18. Ensure non-null before ref.
authorJeremy Allison <jra@samba.org>
Thu, 9 Mar 2006 17:56:16 +0000 (17:56 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:11:10 +0000 (11:11 -0500)
Jeremy.
(This used to be commit 617c5805e59dd601b8841251032e3db4d6a64621)

source3/rpc_parse/parse_spoolss.c

index f79731fea2edebb1a683ef669101512fe5cf8b76..bb33918a446d3dddd04c589fd02df40ebc1384b9 100644 (file)
@@ -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);