diff options
author | Jeremy Allison <jra@samba.org> | 2006-03-11 02:20:58 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:15:15 -0500 |
commit | b96f20a3168822074653fbe3b4122b78a938154d (patch) | |
tree | 78ad0ce00eb2f4b2430a638b037982f2b5aab774 /source3 | |
parent | 2992ba0690eacaeec3e6e045d56cc4d63ac9d9a6 (diff) | |
download | samba-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.c | 5 |
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) { |