]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
hm, an unknown error from bind() when binding the outgoing socket would
authorDaniel Stenberg <daniel@haxx.se>
Mon, 8 Oct 2001 06:56:00 +0000 (06:56 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 8 Oct 2001 06:56:00 +0000 (06:56 +0000)
failf("%d") without the error as argument... it would always make a weird
number get output

lib/connect.c

index 206a43edc851fa0da4b7d2ba924e0467c493c908..1ec33ecab3e9b14539efe8d21a51e12ba6098678 100644 (file)
@@ -279,8 +279,9 @@ static CURLcode bindlocal(struct connectdata *conn,
             failf(data, "Insufficient kernel memory was available: %d", errno);
             break;
           default:
-            failf(data,"errno %d\n");
-          } /* end of switch */
+            failf(data, "errno %d\n", errno);
+            break;
+          } /* end of switch(errno) */
        
           return CURLE_HTTP_PORT_FAILED;
         } /* end of else */