We need to remove fragments from the incoming fragment list, or else
we leak (actually, we walk free()'ed data as we add/remove elements).
Andrew Bartlett
(This used to be commit
77473d2ef9a7673cebb56b398acf390fd51a08c8)
DLIST_ADD_END(dce_conn->incoming_fragmented_call_list, call,
struct dcesrv_call_state *);
return NT_STATUS_OK;
- }
+ }
+
+ /* This removes any fragments we may have had stashed away */
+ DLIST_REMOVE(dce_conn->incoming_fragmented_call_list, call);
switch (call->pkt.ptype) {
case DCERPC_PKT_BIND: