]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove some dead code found by coverity, cid 404
authorSebastian Hahn <sebastian@torproject.org>
Mon, 14 Dec 2009 08:53:31 +0000 (09:53 +0100)
committerSebastian Hahn <sebastian@torproject.org>
Mon, 14 Dec 2009 08:53:31 +0000 (09:53 +0100)
In connection_dir_client_reached_eof, we make sure that we either
return when we get an http status code of 503 or handle the problem
and set it to 200. Later we check if the status code is 503. Remove
that check.

src/or/directory.c

index 45483cce2837d94160c7b3e2eb7d6ad137ff7b4a..06a2cffd812b0cba555ef3e4792d0791387454bc 100644 (file)
@@ -1997,12 +1997,6 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
                  "'%s:%d'. Malformed rendezvous descriptor?",
                  escaped(reason), conn->_base.address, conn->_base.port);
         break;
-      case 503:
-        log_info(LD_REND,"http status 503 (%s) response from dirserver "
-                 "'%s:%d'. Node is (currently) not acting as v2 hidden "
-                 "service directory.",
-                 escaped(reason), conn->_base.address, conn->_base.port);
-        break;
       default:
         log_warn(LD_REND,"http status %d (%s) response unexpected (server "
                  "'%s:%d').",