summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-27 04:11:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:20 -0500
commit0be5523afbd9fcc2c08afab708fa6df19035f16e (patch)
treefa183e11fc6c4e32626d18b08413e1348d745e30
parentd13bbcf9e35deed8a7ad2b4e37bea56832ba3563 (diff)
downloadsamba-0be5523afbd9fcc2c08afab708fa6df19035f16e.tar.gz
samba-0be5523afbd9fcc2c08afab708fa6df19035f16e.tar.bz2
samba-0be5523afbd9fcc2c08afab708fa6df19035f16e.zip
r2673: 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 (This used to be commit c51ca7c0e73b97435c245cd440a4fb979cf6a4f3)
-rw-r--r--source4/rpc_server/dcerpc_server.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/rpc_server/dcerpc_server.c b/source4/rpc_server/dcerpc_server.c
index 5ab434baed..9536fd6894 100644
--- a/source4/rpc_server/dcerpc_server.c
+++ b/source4/rpc_server/dcerpc_server.c
@@ -250,7 +250,7 @@ static NTSTATUS dcesrv_inherited_session_key(struct dcesrv_connection *p,
}
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 @@ NTSTATUS dcesrv_input_process(struct dcesrv_connection *dce_conn)
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