diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-05-11 13:39:11 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-05-11 13:39:11 -0400 |
commit | 03ae44a9e83b86a64a8e25164241cbaa0164e8cf (patch) | |
tree | 1b48452628a2bae60d8d8e4f55fdc83cbb7abccb /src/or/directory.c | |
parent | 50d777dcf4ca963fff35935f3c171f4c4a27c72e (diff) | |
download | tor-03ae44a9e83b86a64a8e25164241cbaa0164e8cf.tar.gz tor-03ae44a9e83b86a64a8e25164241cbaa0164e8cf.zip |
Fix comment for directory_handle_command_get
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 5 |
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) |