From b7d9aa2e8fd34ee4f300313877d343d87fa8b3e3 Mon Sep 17 00:00:00 2001
From: Tor Arntsen <tor@spacetec.no>
Date: Tue, 5 Feb 2013 17:12:28 +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 0d24697..0afb1ee 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -970,6 +970,8 @@ singleipconnect(struct connectdata *conn,
       break;
     }
   }
+  else
+    *sockp = sockfd;
 
   return CURLE_OK;
 }
-- 
1.7.10.4

