1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

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

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

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