svn commit: samba r14190 - in branches/SAMBA_3_0/source/libmsrpc: .
jra at samba.org
jra at samba.org
Sat Mar 11 02:20:59 GMT 2006
Author: jra
Date: 2006-03-11 02:20:58 +0000 (Sat, 11 Mar 2006)
New Revision: 14190
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14190
Log:
Coverity bug #33. Missing initialization of pipe_hnd.
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:17:06 UTC (rev 14189)
+++ branches/SAMBA_3_0/source/libmsrpc/cac_lsarpc.c 2006-03-11 02:20:58 UTC (rev 14190)
@@ -793,6 +793,11 @@
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) {
More information about the samba-cvs
mailing list