Loading src/or/routerparse.c +4 −5 Original line number Diff line number Diff line Loading @@ -2171,13 +2171,12 @@ networkstatus_parse_vote_from_string(const char *s, const char **eos_out, goto err; } voter->addr = ntohl(in.s_addr); /* XXX021 long to int to uint64 to uint16? what the hell? -rd */ voter->dir_port = (uint64_t) (int) tor_parse_long(tok->args[4], 10, 0, 65535, &ok, NULL); voter->dir_port = (uint16_t) tor_parse_long(tok->args[4], 10, 0, 65535, &ok, NULL); if (!ok) goto err; voter->or_port = (uint64_t) (int) tor_parse_long(tok->args[5], 10, 0, 65535, &ok, NULL); voter->or_port = (uint16_t) tor_parse_long(tok->args[5], 10, 0, 65535, &ok, NULL); if (!ok) goto err; } else if (tok->tp == K_CONTACT) { Loading Loading
src/or/routerparse.c +4 −5 Original line number Diff line number Diff line Loading @@ -2171,13 +2171,12 @@ networkstatus_parse_vote_from_string(const char *s, const char **eos_out, goto err; } voter->addr = ntohl(in.s_addr); /* XXX021 long to int to uint64 to uint16? what the hell? -rd */ voter->dir_port = (uint64_t) (int) tor_parse_long(tok->args[4], 10, 0, 65535, &ok, NULL); voter->dir_port = (uint16_t) tor_parse_long(tok->args[4], 10, 0, 65535, &ok, NULL); if (!ok) goto err; voter->or_port = (uint64_t) (int) tor_parse_long(tok->args[5], 10, 0, 65535, &ok, NULL); voter->or_port = (uint16_t) tor_parse_long(tok->args[5], 10, 0, 65535, &ok, NULL); if (!ok) goto err; } else if (tok->tp == K_CONTACT) { Loading