]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix comment for directory_handle_command_get
authorNick Mathewson <nickm@torproject.org>
Wed, 11 May 2016 17:39:11 +0000 (13:39 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 11 May 2016 17:39:11 +0000 (13:39 -0400)
src/or/directory.c

index 925251118bde170d80325a3e695dc9d4def31c55..a3ade8f164c5b67d5b6bdc68e5bb093340ee7744 100644 (file)
@@ -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)