From f4c49e8ef2c22a89fec8b79840fddfb018b2c6f8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 20 Sep 2006 16:35:05 +0000 Subject: r18716: put in a commented out useful hack for some RPC servers (This used to be commit fcf6d827199eac83fa424f2eb87a72ed8463e150) --- source4/librpc/rpc/dcerpc.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source4/librpc/rpc/dcerpc.c') diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c index 6ae84a5f22..bfdf93a0f3 100644 --- a/source4/librpc/rpc/dcerpc.c +++ b/source4/librpc/rpc/dcerpc.c @@ -819,6 +819,14 @@ static void dcerpc_request_recv_data(struct dcerpc_connection *c, if (pkt->call_id == req->call_id) break; } +#if 0 + /* useful for testing certain vendors RPC servers */ + if (req == NULL && c->pending && pkt->call_id == 0) { + DEBUG(0,("HACK FOR INCORRECT CALL ID\n")); + req = c->pending; + } +#endif + if (req == NULL) { DEBUG(2,("dcerpc_request: unmatched call_id %u in response packet\n", pkt->call_id)); data_blob_free(raw_packet); -- cgit