summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-03-11 02:20:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:15 -0500
commitb96f20a3168822074653fbe3b4122b78a938154d (patch)
tree78ad0ce00eb2f4b2430a638b037982f2b5aab774 /source3
parent2992ba0690eacaeec3e6e045d56cc4d63ac9d9a6 (diff)
downloadsamba-b96f20a3168822074653fbe3b4122b78a938154d.tar.gz
samba-b96f20a3168822074653fbe3b4122b78a938154d.tar.bz2
samba-b96f20a3168822074653fbe3b4122b78a938154d.zip
r14190: Coverity bug #33. Missing initialization of pipe_hnd.
Jeremy. (This used to be commit 144fda363793f233236a5e539daec64fa2966f3b)
Diffstat (limited to 'source3')
-rw-r--r--source3/libmsrpc/cac_lsarpc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/libmsrpc/cac_lsarpc.c b/source3/libmsrpc/cac_lsarpc.c
index b53fc697c4..d8b92b9dbf 100644
--- a/source3/libmsrpc/cac_lsarpc.c
+++ b/source3/libmsrpc/cac_lsarpc.c
@@ -793,6 +793,11 @@ int cac_LsaOpenAccount(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, struct LsaOpen
return CAC_FAILURE;
}
+ pipe_hnd = cac_GetPipe(hnd, PI_LSARPC);
+ if(!pipe_hnd) {
+ hnd->status = NT_STATUS_INVALID_HANDLE;
+ return CAC_FAILURE;
+ }
/*look up the user's SID if we have to*/
if(op->in.name && !op->in.sid) {