diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-03-12 17:29:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:15:20 -0500 |
commit | 15f4c6372ce5aaefa1ab338cd8d0a3aee77b8efc (patch) | |
tree | f5f01a92b4e5ab7444c6589eed6337e3e4a86fde | |
parent | e2e3c377a3fd160e55dc73a1849622dff375462f (diff) | |
download | samba-15f4c6372ce5aaefa1ab338cd8d0a3aee77b8efc.tar.gz samba-15f4c6372ce5aaefa1ab338cd8d0a3aee77b8efc.tar.bz2 samba-15f4c6372ce5aaefa1ab338cd8d0a3aee77b8efc.zip |
r14244: Okay, had not seen that this happened twice.
Fix Coverity bug # 142.
Volker
(This used to be commit f2a24b63e395d5cbb9b81521cd7ffe904821b727)
-rw-r--r-- | source3/rpc_client/cli_spoolss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_spoolss.c b/source3/rpc_client/cli_spoolss.c index 344d4fb4ba..d6d4417da3 100644 --- a/source3/rpc_client/cli_spoolss.c +++ b/source3/rpc_client/cli_spoolss.c @@ -338,7 +338,7 @@ static BOOL decode_jobs_1(TALLOC_CTX *mem_ctx, RPC_BUFFER *buffer, uint32 i; *jobs = TALLOC_ARRAY(mem_ctx, JOB_INFO_1, num_jobs); - if (!jobs) { + if (*jobs == NULL) { return False; } prs_set_offset(&buffer->prs,0); |