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

Fixes Valgrind errors in various tests using RPC.
This commit is contained in:
Rob Shearman 2009-11-12 00:31:28 +00:00 committed by Alexandre Julliard
parent bafd91106e
commit a638bff53d
1 changed files with 4 additions and 0 deletions

View File

@ -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)
{