svn commit: samba r2673 - in branches/SAMBA_4_0/source/rpc_server: .

tridge at samba.org tridge at samba.org
Mon Sep 27 04:11:37 GMT 2004


Author: tridge
Date: 2004-09-27 04:11:37 +0000 (Mon, 27 Sep 2004)
New Revision: 2673

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/rpc_server&rev=2673&nolog=1

Log:
in the rpc server, free up the old call when we decide to extend an
existing call rather than creating a new one. This prevents call
structures hanging around on the rpc connection context until it is
closed


Modified:
   branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c


Changeset:
Modified: branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c
===================================================================
--- branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c	2004-09-27 04:00:23 UTC (rev 2672)
+++ branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c	2004-09-27 04:11:37 UTC (rev 2673)
@@ -250,7 +250,7 @@
 }
 
 NTSTATUS dcesrv_generic_session_key(struct dcesrv_connection *p,
-				  DATA_BLOB *session_key)
+				    DATA_BLOB *session_key)
 {
 	/* this took quite a few CPU cycles to find ... */
 	session_key->data = "SystemLibraryDTC";
@@ -831,6 +831,8 @@
 			call2->pkt.u.request.stub_and_verifier.length;
 
 		call->pkt.pfc_flags |= (call2->pkt.pfc_flags & DCERPC_PFC_FLAG_LAST);
+
+		talloc_free(call2);
 	}
 
 	/* this may not be the last pdu in the chain - if its isn't then



More information about the samba-cvs mailing list