mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 06:48:05 +01:00
The circus music begins playing as nickm and arma juggle an ntohl. Hoop-lah!
svn:r4848
This commit is contained in:
parent
ee76baae3d
commit
43488472ec
1 changed files with 7 additions and 5 deletions
|
@ -1466,12 +1466,14 @@ add_trusted_dir_server(const char *address, uint16_t port, const char *digest)
|
||||||
log_fn(LOG_WARN, "Couldn't find a suitable address. Returning.");
|
log_fn(LOG_WARN, "Couldn't find a suitable address. Returning.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else if (tor_lookup_hostname(address, &a)) {
|
} else {
|
||||||
log_fn(LOG_WARN, "Unable to lookup address for directory server at %s",
|
if (tor_lookup_hostname(address, &a)) {
|
||||||
address);
|
log_fn(LOG_WARN, "Unable to lookup address for directory server at %s",
|
||||||
return;
|
address);
|
||||||
|
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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue