]> granicus.if.org Git - curl/commitdiff
singleipconnect: Update *sockp for all CURLE_OK
authorTor Arntsen <tor@spacetec.no>
Tue, 5 Feb 2013 16:26:07 +0000 (17:26 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 5 Feb 2013 16:58:28 +0000 (17:58 +0100)
The 56b7c87c7 change left a case where a good sockfd was not copied to
*sockp before returning with CURLE_OK

lib/connect.c

index 0d24697d2c10a30d64a54f983991a2e86cc698eb..0afb1ee6160d150ab8a2411c2cd8c312c17d7613 100644 (file)
@@ -970,6 +970,8 @@ singleipconnect(struct connectdata *conn,
       break;
     }
   }
+  else
+    *sockp = sockfd;
 
   return CURLE_OK;
 }