diff options
author | Cody P Schafer <devel@codyps.com> | 2014-01-25 18:23:13 -0800 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2014-04-24 16:21:38 +0930 |
commit | ac7f55756015e12dc3e00f4c20995ea31670caef (patch) | |
tree | 5bbc5442520a5a3ffc89a9b11ecd5f07416a3f92 | |
parent | ab6e77749bfe678bde2cdf1442145bfbcaea253d (diff) |
net: fix ipv4 immediate connect
-rw-r--r-- | ccan/net/net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ccan/net/net.c b/ccan/net/net.c index 394c4e49..4c84ba7a 100644 --- a/ccan/net/net.c +++ b/ccan/net/net.c @@ -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; } } |