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

rpcrt4: Fix a typo in rpcrt4_ip_tcp_open that would cause the function

to go into an infinite loop if getaddrinfo returned more than one entry.
parent 593d0fba
......@@ -600,7 +600,7 @@ static RPC_STATUS rpcrt4_ncacn_ip_tcp_open(RpcConnection* Connection)
return RPC_S_SERVER_UNAVAILABLE;
}
for (ai_cur = ai; ai_cur; ai_cur = ai->ai_next)
for (ai_cur = ai; ai_cur; ai_cur = ai_cur->ai_next)
{
if (TRACE_ON(rpc))
{
......
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