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:
parent
17c354acf3
commit
d785b61a16
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user