diff options
author | Jeremy Allison <jra@samba.org> | 2006-03-09 18:01:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:11:11 -0500 |
commit | a9d1af9d31062ce39eeab90250ea86cccd5a11b6 (patch) | |
tree | 0d68f419f6aed421fd8615b49f4f655c03a8ad8e | |
parent | d785b61a16c6135923a5aece1536c427ba91799f (diff) | |
download | samba-a9d1af9d31062ce39eeab90250ea86cccd5a11b6.tar.gz samba-a9d1af9d31062ce39eeab90250ea86cccd5a11b6.tar.bz2 samba-a9d1af9d31062ce39eeab90250ea86cccd5a11b6.zip |
r14083: Fix coverity bug #19. Don't deref possible NULL.
Jeremy.
(This used to be commit fc8e1e5c02dd950ed1f8656a5d7ab47fa7ec1ea7)
-rw-r--r-- | source3/rpc_parse/parse_spoolss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_spoolss.c b/source3/rpc_parse/parse_spoolss.c index bb33918a44..e4a023ac21 100644 --- a/source3/rpc_parse/parse_spoolss.c +++ b/source3/rpc_parse/parse_spoolss.c @@ -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)); |