summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-03-26 23:37:13 +0000
committerRoger Dingledine <arma@torproject.org>2004-03-26 23:37:13 +0000
commit32e268c61b7c4bfe9848f119ca0b4c8315d066de (patch)
treea28b3526eada4e791480d6ab1aaaaa5a1b3a9311
parentd324e835207432cdfc9ede2d309051d97c57066d (diff)
downloadtor-32e268c61b7c4bfe9848f119ca0b4c8315d066de.tar.gz
tor-32e268c61b7c4bfe9848f119ca0b4c8315d066de.zip
oops, 0.0.4 is more broken than 0.0.3
maybe this will fix it svn:r1347
-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 9c2d794338..b70fa55beb 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -77,6 +77,7 @@ static int directory_send_command(connection_t *conn, int command) {
switch(command) {
case DIR_CONN_STATE_CONNECTING_FETCH:
connection_write_to_buf(fetchstring, strlen(fetchstring), conn);
+ conn->state = DIR_CONN_STATE_CLIENT_SENDING_FETCH;
break;
case DIR_CONN_STATE_CONNECTING_UPLOAD:
s = router_get_my_descriptor();
@@ -87,6 +88,7 @@ static int directory_send_command(connection_t *conn, int command) {
snprintf(tmp, sizeof(tmp), "POST / HTTP/1.0\r\nContent-Length: %d\r\n\r\n%s",
(int)strlen(s), s);
connection_write_to_buf(tmp, strlen(tmp), conn);
+ conn->state = DIR_CONN_STATE_CLIENT_SENDING_UPLOAD;
break;
}
return 0;