summaryrefslogtreecommitdiff
path: root/source3/libmsrpc
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-06-28 01:00:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:19:01 -0500
commitf18df87fe9f591ff4d1289a79103a8d62a579ff6 (patch)
treeb154b34fcc7c2b1d1b2480afe0e8562c90dfaa51 /source3/libmsrpc
parentd1014c1cdfce116741ddd6eccd65b69530ce0b84 (diff)
downloadsamba-f18df87fe9f591ff4d1289a79103a8d62a579ff6.tar.gz
samba-f18df87fe9f591ff4d1289a79103a8d62a579ff6.tar.bz2
samba-f18df87fe9f591ff4d1289a79103a8d62a579ff6.zip
r16585: Fix Klocwork #1976. Possible null deref.
Jeremy. (This used to be commit a912ef0d9724373966e77f9e8928be462de8df4a)
Diffstat (limited to 'source3/libmsrpc')
-rw-r--r--source3/libmsrpc/cac_winreg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libmsrpc/cac_winreg.c b/source3/libmsrpc/cac_winreg.c
index acd83f4076..6ef898eb16 100644
--- a/source3/libmsrpc/cac_winreg.c
+++ b/source3/libmsrpc/cac_winreg.c
@@ -65,6 +65,7 @@ int cac_RegConnect(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, struct RegConnect
key = talloc(mem_ctx, POLICY_HND);
if(!key) {
hnd->status = NT_STATUS_NO_MEMORY;
+ return CAC_FAILURE;
}
err = rpccli_reg_connect( pipe_hnd, mem_ctx, op->in.root, op->in.access, key);