From b96f20a3168822074653fbe3b4122b78a938154d Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 11 Mar 2006 02:20:58 +0000 Subject: r14190: Coverity bug #33. Missing initialization of pipe_hnd. Jeremy. (This used to be commit 144fda363793f233236a5e539daec64fa2966f3b) --- source3/libmsrpc/cac_lsarpc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/libmsrpc') 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) { -- cgit