cURL / Mailing Lists / curl-library / Single Mail


Re: Headsup: Lately curl builds fail on AIX, Solaris

From: Tor Arntsen <>
Date: Tue, 5 Feb 2013 17:26:07 +0100

Here's a fix. singleipconnect() didn't copy back sockfd to *sockp if
it reached the end of the function (the no-error case).

Had some trouble coming up with a good commit comment! :)

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,
+  else
+    *sockp = sockfd;
   return CURLE_OK;
This e-mail and any attachment contain KONGSBERG information which may be 
proprietary, confidential or subject to export regulations, and is only meant 
for the intended recipient(s). Any disclosure, copying, distribution or use is 
prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in 
error, please delete it immediately from your system and notify the sender 

List admin:

Received on 2013-02-05