From 278ab75e9ffc1dc8cc9b723ad97c165b9953900b Mon Sep 17 00:00:00 2001 From: Tor Arntsen Date: Tue, 5 Feb 2013 17:26:07 +0100 Subject: [PATCH] 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 --- lib/connect.c | 2 ++ 1 file changed, 2 insertions(+) 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; }