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:
parent
bafd91106e
commit
a638bff53d
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue