switch() on the right variable!
authorDaniel Stenberg <daniel@haxx.se>
Tue, 23 Mar 2004 15:48:27 +0000 (15:48 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 23 Mar 2004 15:48:27 +0000 (15:48 +0000)
lib/connect.c

index adeadb5..14d3a70 100644 (file)
@@ -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;