1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00

r14080: Fix Coverity bug #18. Ensure non-null before ref.

Jeremy.
(This used to be commit 617c5805e5)
This commit is contained in:
Jeremy Allison 2006-03-09 17:56:16 +00:00 committed by Gerald (Jerry) Carter
parent 17c354acf3
commit d785b61a16

View 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);