summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-02-05 21:39:36 +0000
committerNick Mathewson <nickm@torproject.org>2008-02-05 21:39:36 +0000
commit83e740fa91c1b79341ff5d3a89d8ee2989b1f391 (patch)
treec2c2925f975650b31a33fbe86872e052c73c31d1 /src/or/or.h
parente09c207c3c233f84bfb99492eb4163f4a5d0a71c (diff)
downloadtor-83e740fa91c1b79341ff5d3a89d8ee2989b1f391.tar.gz
tor-83e740fa91c1b79341ff5d3a89d8ee2989b1f391.zip
r17911@catbus: nickm | 2008-02-05 15:53:22 -0500
Fix a potential bug that would make authorities fail to vote under bizarre circumstances that probably never happened. svn:r13385
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 448df3645a..a1aea43901 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -3049,7 +3049,11 @@ download_status_is_ready(download_status_t *dls, time_t now,
}
/********************************* dirserv.c ***************************/
-
+/** Maximum allowable length of a version line in a networkstatus. */
+#define MAX_V_LINE_LEN 128
+/** Length of "r Authority BadDirectory BadExit Exit Fast Guard HSDir Named
+ * Running Stable Unnamed V2Dir Valid\n". */
+#define MAX_FLAG_LINE_LEN 96
#define UNNAMED_ROUTER_NICKNAME "Unnamed"
int connection_dirserv_flushed_some(dir_connection_t *conn);