summaryrefslogtreecommitdiffstats
path: root/source/libmsrpc
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-03-11 02:29:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:16 -0500
commit6b3dc96dcf9b14177abfd3c901bfb0baad8afa76 (patch)
treeec6ca159ff00dbdecd8c6cbe9e62557d87520ce1 /source/libmsrpc
parent144fda363793f233236a5e539daec64fa2966f3b (diff)
downloadsamba-6b3dc96dcf9b14177abfd3c901bfb0baad8afa76.tar.gz
samba-6b3dc96dcf9b14177abfd3c901bfb0baad8afa76.tar.xz
samba-6b3dc96dcf9b14177abfd3c901bfb0baad8afa76.zip
r14192: Don't forget to correctly initialize pipe_hnd.
Coverity fix #34. Jeremy.
Diffstat (limited to 'source/libmsrpc')
-rw-r--r--source/libmsrpc/cac_lsarpc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/libmsrpc/cac_lsarpc.c b/source/libmsrpc/cac_lsarpc.c
index d8b92b9dbf1..1877e9cd7ef 100644
--- a/source/libmsrpc/cac_lsarpc.c
+++ b/source/libmsrpc/cac_lsarpc.c
@@ -59,6 +59,12 @@ int cac_LsaOpenPolicy(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, struct LsaOpenP
hnd->_internal.pipes[PI_LSARPC] = True;
}
+ pipe_hnd = cac_GetPipe(hnd, PI_LSARPC);
+ if(!pipe_hnd) {
+ hnd->status = NT_STATUS_INVALID_HANDLE;
+ return CAC_FAILURE;
+ }
+
policy = SMB_MALLOC_P(POLICY_HND);
if(!policy) {
errno = ENOMEM;