aboutsummaryrefslogtreecommitdiff
path: root/lib/connect.c
diff options
context:
space:
mode:
authorTor Arntsen <tor@spacetec.no>2013-02-05 17:26:07 +0100
committerDaniel Stenberg <daniel@haxx.se>2013-02-05 17:58:28 +0100
commit278ab75e9ffc1dc8cc9b723ad97c165b9953900b (patch)
tree1af18bd918e5210b4bd34c107166f23a1013d36b /lib/connect.c
parent0d1b754376d7c6a266d32fcc10dc7968f0569129 (diff)
singleipconnect: Update *sockp for all CURLE_OK
The 56b7c87c7 change left a case where a good sockfd was not copied to *sockp before returning with CURLE_OK
Diffstat (limited to 'lib/connect.c')
-rw-r--r--lib/connect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 0d24697d2..0afb1ee61 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -970,6 +970,8 @@ singleipconnect(struct connectdata *conn,
break;
}
}
+ else
+ *sockp = sockfd;
return CURLE_OK;
}