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

r14083: Fix coverity bug #19. Don't deref possible NULL.

Jeremy.
(This used to be commit fc8e1e5c02dd950ed1f8656a5d7ab47fa7ec1ea7)
This commit is contained in:
Jeremy Allison 2006-03-09 18:01:42 +00:00 committed by Gerald (Jerry) Carter
parent d785b61a16
commit a9d1af9d31

View File

@ -3733,7 +3733,7 @@ BOOL make_spoolss_q_setprinter(TALLOC_CTX *mem_ctx, SPOOL_Q_SETPRINTER *q_u,
SEC_DESC *secdesc;
DEVICEMODE *devmode;
if (q_u == NULL)
if (!q_u || !info)
return False;
memcpy(&q_u->handle, hnd, sizeof(q_u->handle));