diff options
author | Jeremy Allison <jra@samba.org> | 2006-06-28 01:00:48 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:19:01 -0500 |
commit | f18df87fe9f591ff4d1289a79103a8d62a579ff6 (patch) | |
tree | b154b34fcc7c2b1d1b2480afe0e8562c90dfaa51 | |
parent | d1014c1cdfce116741ddd6eccd65b69530ce0b84 (diff) | |
download | samba-f18df87fe9f591ff4d1289a79103a8d62a579ff6.tar.gz samba-f18df87fe9f591ff4d1289a79103a8d62a579ff6.tar.bz2 samba-f18df87fe9f591ff4d1289a79103a8d62a579ff6.zip |
r16585: Fix Klocwork #1976. Possible null deref.
Jeremy.
(This used to be commit a912ef0d9724373966e77f9e8928be462de8df4a)
-rw-r--r-- | source3/libmsrpc/cac_winreg.c | 1 |
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); |