From 31d185a23b138c88f33ab9d359ec36254d4bae56 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Tue, 18 Mar 2008 03:08:48 +0000 Subject: [PATCH] point out another bug for nick. and if it's *not* a bug, that's stunning and i want to know why. :) svn:r14088 --- src/or/routerparse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 31b10baf30..835d20683d 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -2171,6 +2171,7 @@ 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); if (!ok)