From a638bff53ddefe52cecc54e1980d9636658a7aaf Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Thu, 12 Nov 2009 00:31:28 +0000 Subject: [PATCH] rpcrt4: Stop searching through transfer syntaxes in process_bind_packet when one has been found. Fixes Valgrind errors in various tests using RPC. --- dlls/rpcrt4/rpc_server.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/rpcrt4/rpc_server.c b/dlls/rpcrt4/rpc_server.c index eb31e8b854c..1bd123592bf 100644 --- a/dlls/rpcrt4/rpc_server.c +++ b/dlls/rpcrt4/rpc_server.c @@ -213,8 +213,12 @@ static RPC_STATUS process_bind_packet(RpcConnection *conn, RpcPktBindHdr *hdr, R unsigned int j; for (j = 0; !sif && j < ctxt_elem->num_syntaxes; j++) + { sif = RPCRT4_find_interface(NULL, &ctxt_elem->abstract_syntax, &ctxt_elem->transfer_syntaxes[j], FALSE); + if (sif) + break; + } if (sif) {