summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-05-11 13:39:11 -0400
committerNick Mathewson <nickm@torproject.org>2016-05-11 13:39:11 -0400
commit03ae44a9e83b86a64a8e25164241cbaa0164e8cf (patch)
tree1b48452628a2bae60d8d8e4f55fdc83cbb7abccb
parent50d777dcf4ca963fff35935f3c171f4c4a27c72e (diff)
downloadtor-03ae44a9e83b86a64a8e25164241cbaa0164e8cf.tar.gz
tor-03ae44a9e83b86a64a8e25164241cbaa0164e8cf.zip
Fix comment for directory_handle_command_get
-rw-r--r--src/or/directory.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 925251118b..a3ade8f164 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -2924,8 +2924,9 @@ static const url_table_ent_t url_table[] = {
/** Helper function: called when a dirserver gets a complete HTTP GET
* request. Look for a request for a directory or for a rendezvous
* service descriptor. On finding one, write a response into
- * conn-\>outbuf. If the request is unrecognized, send a 400.
- * Always return 0. */
+ * conn-\>outbuf. If the request is unrecognized, send a 404.
+ * Return 0 if we handled this successfully, or -1 if we need to close
+ * the connection. */
STATIC int
directory_handle_command_get(dir_connection_t *conn, const char *headers,
const char *req_body, size_t req_body_len)