Browse Source

move a wandering ntohl

svn:r4847
Nick Mathewson 20 years ago
parent
commit
ee76baae3d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/routerlist.c

+ 1 - 1
src/or/routerlist.c

@@ -1470,8 +1470,8 @@ add_trusted_dir_server(const char *address, uint16_t port, const char *digest)
     log_fn(LOG_WARN, "Unable to lookup address for directory server at %s",
     log_fn(LOG_WARN, "Unable to lookup address for directory server at %s",
            address);
            address);
     return;
     return;
-    a = ntohl(a);
   }
   }
+  a = ntohl(a);
 
 
   ent = tor_malloc(sizeof(trusted_dir_server_t));
   ent = tor_malloc(sizeof(trusted_dir_server_t));
   if (address) {
   if (address) {