aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c
index adeadb59f..14d3a70b4 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -354,7 +354,7 @@ static CURLcode bindlocal(struct connectdata *conn,
#endif
if(!bindworked) {
int err = Curl_ourerrno();
- switch(errno) {
+ switch(err) {
case EBADF:
failf(data, "Invalid descriptor: %d", err);
break;