Browse Source

Merge commit 'sebastian/coverity'

Nick Mathewson 15 years ago
parent
commit
d42c689b8e
2 changed files with 1 additions and 7 deletions
  1. 0 6
      src/or/directory.c
  2. 1 1
      src/or/networkstatus.c

+ 0 - 6
src/or/directory.c

@@ -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').",

+ 1 - 1
src/or/networkstatus.c

@@ -1516,7 +1516,7 @@ networkstatus_set_current_consensus(const char *consensus,
     goto done;
   }
 
-  if (c->flavor != flav) {
+  if ((int)c->flavor != flav) {
     /* This wasn't the flavor we thought we were getting. */
     if (require_flavor) {
       log_warn(LD_DIR, "Got consensus with unexpected flavor %s (wanted %s)",