Commit a638bff5 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

rpcrt4: Stop searching through transfer syntaxes in process_bind_packet when one has been found.

Fixes Valgrind errors in various tests using RPC.
parent bafd9110
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment