svn commit: samba r14192 - in branches/SAMBA_3_0/source/libmsrpc: .
jra at samba.org
jra at samba.org
Sat Mar 11 02:29:23 GMT 2006
Author: jra
Date: 2006-03-11 02:29:23 +0000 (Sat, 11 Mar 2006)
New Revision: 14192
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14192
Log:
Don't forget to correctly initialize pipe_hnd.
Coverity fix #34.
Jeremy.
Modified:
branches/SAMBA_3_0/source/libmsrpc/cac_lsarpc.c
Changeset:
Modified: branches/SAMBA_3_0/source/libmsrpc/cac_lsarpc.c
===================================================================
--- branches/SAMBA_3_0/source/libmsrpc/cac_lsarpc.c 2006-03-11 02:21:03 UTC (rev 14191)
+++ branches/SAMBA_3_0/source/libmsrpc/cac_lsarpc.c 2006-03-11 02:29:23 UTC (rev 14192)
@@ -59,6 +59,12 @@
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;
More information about the samba-cvs
mailing list