aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-06-15 04:20:51 +0000
committerRoger Dingledine <arma@torproject.org>2007-06-15 04:20:51 +0000
commit73f7310d9b7fdca11278b139336a0671be1ee883 (patch)
treeaad52d6f60b448fca11806098e80e36e9e509aeb /src/or/directory.c
parentcfc6b4e0749fc517e42b20394bdbf5f49a419294 (diff)
downloadtor-73f7310d9b7fdca11278b139336a0671be1ee883.tar.gz
tor-73f7310d9b7fdca11278b139336a0671be1ee883.zip
Directories no longer return a "304 not modified" when they don't
have the networkstatus the client asked for. Also fix a memory leak when returning 304 not modified. [Bugfixes on 0.2.0.2-alpha] svn:r10607
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 83a7a7b0b2..546b7e2cc3 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -1806,6 +1806,8 @@ directory_handle_command_get(dir_connection_t *conn, const char *headers,
}
if (dirserv_statuses_are_old(dir_fps, if_modified_since)) {
write_http_status_line(conn, 304, "Not modified");
+ /* no need to free dir_fps's elements, since
+ * dirserv_statuses_are_old() already did. */
smartlist_free(dir_fps);
return 0;
}