Explorar o código

move a wandering ntohl

svn:r4847
Nick Mathewson %!s(int64=20) %!d(string=hai) anos
pai
achega
ee76baae3d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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",
            address);
     return;
-    a = ntohl(a);
   }
+  a = ntohl(a);
 
   ent = tor_malloc(sizeof(trusted_dir_server_t));
   if (address) {