1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

r14194: Coverity bug #35. Fix uninitialized pipe_hnd.

Jeremy.
This commit is contained in:
Jeremy Allison 2006-03-11 02:43:25 +00:00 committed by Gerald (Jerry) Carter
parent 6b3dc96dcf
commit 8aca76f035

View File

@ -56,6 +56,12 @@ int cac_RegConnect(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, struct RegConnect
hnd->_internal.pipes[PI_WINREG] = True;
}
pipe_hnd = cac_GetPipe(hnd, PI_WINREG);
if(!pipe_hnd) {
hnd->status = NT_STATUS_INVALID_HANDLE;
return CAC_FAILURE;
}
key = talloc(mem_ctx, POLICY_HND);
if(!key) {
hnd->status = NT_STATUS_NO_MEMORY;