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 | a912ef0d9724373966e77f9e8928be462de8df4a (patch) | |
tree | a549eeb09fc3abf44e447c04efd827eee675bf8b | |
parent | ce14daf51c7ee2f9c68c77f7f4674e6f0e35c9ca (diff) | |
download | samba-a912ef0d9724373966e77f9e8928be462de8df4a.tar.gz samba-a912ef0d9724373966e77f9e8928be462de8df4a.tar.xz samba-a912ef0d9724373966e77f9e8928be462de8df4a.zip |
r16585: Fix Klocwork #1976. Possible null deref.
Jeremy.
-rw-r--r-- | source/libmsrpc/cac_winreg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/libmsrpc/cac_winreg.c b/source/libmsrpc/cac_winreg.c index acd83f40760..6ef898eb16d 100644 --- a/source/libmsrpc/cac_winreg.c +++ b/source/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); |