1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

r16585: Fix Klocwork #1976. Possible null deref.

Jeremy.
This commit is contained in:
Jeremy Allison 2006-06-28 01:00:48 +00:00 committed by Gerald (Jerry) Carter
parent ce14daf51c
commit a912ef0d97

View File

@ -65,6 +65,7 @@ int cac_RegConnect(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, struct RegConnect
key = talloc(mem_ctx, POLICY_HND); key = talloc(mem_ctx, POLICY_HND);
if(!key) { if(!key) {
hnd->status = NT_STATUS_NO_MEMORY; hnd->status = NT_STATUS_NO_MEMORY;
return CAC_FAILURE;
} }
err = rpccli_reg_connect( pipe_hnd, mem_ctx, op->in.root, op->in.access, key); err = rpccli_reg_connect( pipe_hnd, mem_ctx, op->in.root, op->in.access, key);