diff options
author | Jeremy Allison <jra@samba.org> | 2006-03-11 02:43:25 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:15:16 -0500 |
commit | cfa4589662a4e872964148057cce4f2188aeec71 (patch) | |
tree | 8cc3328d4da12a04bb8396e94aa03922de8c8379 /source3/libmsrpc | |
parent | 5fe30d0f35be7a77e8ae4b1550ca07a31f8b6f4e (diff) | |
download | samba-cfa4589662a4e872964148057cce4f2188aeec71.tar.gz samba-cfa4589662a4e872964148057cce4f2188aeec71.tar.bz2 samba-cfa4589662a4e872964148057cce4f2188aeec71.zip |
r14194: Coverity bug #35. Fix uninitialized pipe_hnd.
Jeremy.
(This used to be commit 8aca76f03540f3df5a81ddab2588c1f8219ac550)
Diffstat (limited to 'source3/libmsrpc')
-rw-r--r-- | source3/libmsrpc/cac_winreg.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/libmsrpc/cac_winreg.c b/source3/libmsrpc/cac_winreg.c index 4c24671a38..590dce210e 100644 --- a/source3/libmsrpc/cac_winreg.c +++ b/source3/libmsrpc/cac_winreg.c @@ -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; |