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

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


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

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

Log:
Don't forget to correctly initialize pipe_hnd.
Coverity fix #34.
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:29:23 UTC (rev 14192)
+++ trunk/source/libmsrpc/cac_lsarpc.c	2006-03-11 02:29:29 UTC (rev 14193)
@@ -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