From: Daniel Stenberg Date: Tue, 23 Mar 2004 15:48:27 +0000 (+0000) Subject: switch() on the right variable! X-Git-Tag: upstream/7.37.1~13107 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe6f0aeb26170bfe8d7765a865c92264778f712b;p=platform%2Fupstream%2Fcurl.git switch() on the right variable! --- diff --git a/lib/connect.c b/lib/connect.c index adeadb5..14d3a70 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;