summaryrefslogtreecommitdiff
path: root/source3/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
commit5fe30d0f35be7a77e8ae4b1550ca07a31f8b6f4e (patch)
treeaba2d72d0c303ce1bee4ada5f1c8cf933de63f05 /source3/libmsrpc
parentb96f20a3168822074653fbe3b4122b78a938154d (diff)
downloadsamba-5fe30d0f35be7a77e8ae4b1550ca07a31f8b6f4e.tar.gz
r14192: Don't forget to correctly initialize pipe_hnd.
Coverity fix #34. Jeremy. (This used to be commit 6b3dc96dcf9b14177abfd3c901bfb0baad8afa76)
Diffstat (limited to 'source3/libmsrpc')
-rw-r--r--source3/libmsrpc/cac_lsarpc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/libmsrpc/cac_lsarpc.c b/source3/libmsrpc/cac_lsarpc.c
index d8b92b9dbf1..1877e9cd7ef 100644
--- a/source3/libmsrpc/cac_lsarpc.c
+++ b/source3/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;