summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-03-12 17:26:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:20 -0500
commite2e3c377a3fd160e55dc73a1849622dff375462f (patch)
tree240b145d2fb49315756b33625404dc1f80395502 /source3/rpc_client
parent1c66bcef8de15efaaf329c3fa3e73549b067036b (diff)
downloadsamba-e2e3c377a3fd160e55dc73a1849622dff375462f.tar.gz
samba-e2e3c377a3fd160e55dc73a1849622dff375462f.tar.bz2
samba-e2e3c377a3fd160e55dc73a1849622dff375462f.zip
r14243: Fix Coverity bug # 143
(This used to be commit 5a0087e636104ffa98f23b8d17b4d002a55bc6b7)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_spoolss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_spoolss.c b/source3/rpc_client/cli_spoolss.c
index 51b7c5a56b..344d4fb4ba 100644
--- a/source3/rpc_client/cli_spoolss.c
+++ b/source3/rpc_client/cli_spoolss.c
@@ -361,7 +361,7 @@ static BOOL decode_jobs_2(TALLOC_CTX *mem_ctx, RPC_BUFFER *buffer,
uint32 i;
*jobs = TALLOC_ARRAY(mem_ctx, JOB_INFO_2, num_jobs);
- if (!jobs) {
+ if (*jobs == NULL) {
return False;
}
prs_set_offset(&buffer->prs,0);