svn commit: samba r14191 - in trunk/source/libmsrpc: .

jra at samba.org jra at samba.org
Sat Mar 11 02:21:07 GMT 2006


Author: jra
Date: 2006-03-11 02:21:03 +0000 (Sat, 11 Mar 2006)
New Revision: 14191

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14191

Log:
Coverity bug #33. Missing initialization of pipe_hnd.
Jeremy.

Modified:
   trunk/source/libmsrpc/cac_lsarpc.c


Changeset:
Modified: trunk/source/libmsrpc/cac_lsarpc.c
===================================================================
--- trunk/source/libmsrpc/cac_lsarpc.c	2006-03-11 02:20:58 UTC (rev 14190)
+++ trunk/source/libmsrpc/cac_lsarpc.c	2006-03-11 02:21:03 UTC (rev 14191)
@@ -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