1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

r14194: Coverity bug #35. Fix uninitialized pipe_hnd.

Jeremy.
(This used to be commit 8aca76f03540f3df5a81ddab2588c1f8219ac550)
This commit is contained in:
Jeremy Allison 2006-03-11 02:43:25 +00:00 committed by Gerald (Jerry) Carter
parent 5fe30d0f35
commit cfa4589662

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;