aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}