]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
bugfix: let socks do multiple rounds of negotiation again
authorRoger Dingledine <arma@torproject.org>
Wed, 24 Nov 2004 04:35:28 +0000 (04:35 +0000)
committerRoger Dingledine <arma@torproject.org>
Wed, 24 Nov 2004 04:35:28 +0000 (04:35 +0000)
(which is needed for socks5)

svn:r2970

src/or/connection_edge.c

index 4ba528c4889ec19944e4c5203cafd30f2e95345d..b119089c2595a57c855cc2cc2f2511c9d56b4def 100644 (file)
@@ -365,6 +365,7 @@ static int connection_ap_handshake_process_socks(connection_t *conn) {
     if(socks->replylen) { /* we should send reply back */
       log_fn(LOG_DEBUG,"reply is already set for us. Using it.");
       connection_ap_handshake_socks_reply(conn, socks->reply, socks->replylen, 0);
+      socks->replylen = 0; /* zero it out so we can do another round of negotiation */
     } else if(sockshere == -1) { /* send normal reject */
       log_fn(LOG_WARN,"Fetching socks handshake failed. Closing.");
       connection_ap_handshake_socks_reply(conn, NULL, 0, -1);