summaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-01-29 11:23:34 +0000
committerRoger Dingledine <arma@torproject.org>2005-01-29 11:23:34 +0000
commit191e52179c984786c25619fd41b8deeecda7ef48 (patch)
treeebd79e8d654ea61c0905cca66414224ffdb3af8f /src/or/directory.c
parent7fd8dfe6eabda78c0e77e7232a2f5678e9ff5aa4 (diff)
downloadtor-191e52179c984786c25619fd41b8deeecda7ef48.tar.gz
tor-191e52179c984786c25619fd41b8deeecda7ef48.zip
distinguish between "well-formed and rejected" and "not well
formed", when parsing server descriptors. svn:r3458
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 4e6a2c75bf..62681ae844 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -984,6 +984,7 @@ directory_handle_command_post(connection_t *conn, char *headers,
const char *msg;
cp = body;
switch (dirserv_add_descriptor(&cp, &msg)) {
+ case -2:
case -1:
/* malformed descriptor, or something wrong */
write_http_status_line(conn, 400, msg?msg:"Malformed or unacceptable server descriptor");