diff options
author | Roger Dingledine <arma@torproject.org> | 2005-01-29 11:23:34 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-01-29 11:23:34 +0000 |
commit | 191e52179c984786c25619fd41b8deeecda7ef48 (patch) | |
tree | ebd79e8d654ea61c0905cca66414224ffdb3af8f /src/or/directory.c | |
parent | 7fd8dfe6eabda78c0e77e7232a2f5678e9ff5aa4 (diff) | |
download | tor-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.c | 1 |
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"); |