From fe6f0aeb26170bfe8d7765a865c92264778f712b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 23 Mar 2004 15:48:27 +0000 Subject: [PATCH] switch() on the right variable! --- lib/connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;