From: Tor Arntsen Date: Tue, 5 Feb 2013 16:26:07 +0000 (+0100) Subject: singleipconnect: Update *sockp for all CURLE_OK X-Git-Tag: curl-7_29_0~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=278ab75e9ffc1dc8cc9b723ad97c165b9953900b;p=curl 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 --- 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; }