From f18df87fe9f591ff4d1289a79103a8d62a579ff6 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 28 Jun 2006 01:00:48 +0000 Subject: r16585: Fix Klocwork #1976. Possible null deref. Jeremy. (This used to be commit a912ef0d9724373966e77f9e8928be462de8df4a) --- source3/libmsrpc/cac_winreg.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3') 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); -- cgit