diff options
author | Roger Dingledine <arma@torproject.org> | 2004-03-26 23:37:13 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-03-26 23:37:13 +0000 |
commit | 32e268c61b7c4bfe9848f119ca0b4c8315d066de (patch) | |
tree | a28b3526eada4e791480d6ab1aaaaa5a1b3a9311 /src/or | |
parent | d324e835207432cdfc9ede2d309051d97c57066d (diff) | |
download | tor-32e268c61b7c4bfe9848f119ca0b4c8315d066de.tar tor-32e268c61b7c4bfe9848f119ca0b4c8315d066de.tar.gz |
oops, 0.0.4 is more broken than 0.0.3
maybe this will fix it
svn:r1347
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/directory.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 9c2d79433..b70fa55be 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; |