diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2001-10-08 06:56:00 +0000 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2001-10-08 06:56:00 +0000 | 
| commit | 7b5b60d2759a9d01f785705cef7aa7317b29d6e6 (patch) | |
| tree | 8d39d3a7a65d79cf64df8fd4a66e84ec31ac2563 /lib | |
| parent | e719f4169c39b1a8a721e77c7e2dd3673c42fd0d (diff) | |
hm, an unknown error from bind() when binding the outgoing socket would
failf("%d") without the error as argument... it would always make a weird
number get output
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/connect.c | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/connect.c b/lib/connect.c index 206a43edc..1ec33ecab 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -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 */  | 
