Browse Source

cosmetic patch by Bernhard M. Wiedemann, so our comments follow
the socks5 protocol better


svn:r14552

Roger Dingledine 16 years ago
parent
commit
755cbe5d44
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/buffers.c

+ 1 - 1
src/or/buffers.c

@@ -1300,7 +1300,7 @@ fetch_from_buf_socks(buf_t *buf, socks_request_t *req,
 
         req->replylen = 2; /* 2 bytes of response */
         req->reply[0] = 5; /* socks5 reply */
-        req->reply[1] = SOCKS5_SUCCEEDED;
+        req->reply[1] = 0; /* tell client to use "none" auth method */
         req->socks_version = 5; /* remember we've already negotiated auth */
         log_debug(LD_APP,"socks5: accepted method 0");
         return 0;