]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
oops, 0.0.4 is more broken than 0.0.3
authorRoger Dingledine <arma@torproject.org>
Fri, 26 Mar 2004 23:37:13 +0000 (23:37 +0000)
committerRoger Dingledine <arma@torproject.org>
Fri, 26 Mar 2004 23:37:13 +0000 (23:37 +0000)
maybe this will fix it

svn:r1347

src/or/directory.c

index 9c2d7943382e04bef97fc04abe98bc7809fab166..b70fa55bebbbfca7f815fa27449350257754d14e 100644 (file)
@@ -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;