Commit ac7f5575 authored by Cody P Schafer's avatar Cody P Schafer Committed by Rusty Russell

net: fix ipv4 immediate connect

parent ab6e7774
......@@ -116,7 +116,7 @@ int net_connect_async(const struct addrinfo *addrinfo, struct pollfd pfds[2])
close_noerr(pfds[i].fd);
return -1;
}
return pfds[0].fd;
return pfds[i].fd;
}
}
......
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