From: Daniel Stenberg Date: Tue, 23 Mar 2004 15:48:27 +0000 (+0000) Subject: switch() on the right variable! X-Git-Tag: curl-7_11_2~215 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe6f0aeb26170bfe8d7765a865c92264778f712b;p=thirdparty%2Fcurl.git switch() on the right variable! --- diff --git a/lib/connect.c b/lib/connect.c index adeadb59f4..14d3a70b4a 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;