]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Style tweaks on code, changes file for 10987
authorNick Mathewson <nickm@torproject.org>
Fri, 21 Feb 2014 17:27:35 +0000 (17:27 +0000)
committerNick Mathewson <nickm@torproject.org>
Fri, 21 Feb 2014 17:27:35 +0000 (17:27 +0000)
changes/bug10987
src/or/connection_edge.c

index 108eea9a4d58465269fd9270627a763e95d203ce..cc5dd8ff553da649745ae4f44260f6d2d05eeaec 100644 (file)
@@ -1,5 +1,7 @@
-       o Minor bugfixes        
-         - Fix IPv6 support when using the SocksPort with SOCKS5. Fixes bug10987.
-               Using IPv6 through a SOCKS5 using the SocksPort option will now work
-               with this fix. This part of the code has never been updated to support
-               IPv6 thus this does not fix a previously introduced regression.
+  o Minor bugfixes
+
+    - Fix IPv6 support when using the SocksPort with SOCKS5. Using IPv6
+      through a SOCKS5 using the SocksPort option will now work with
+      this fix. This part of the code has never been updated to support
+      IPv6 thus this does not fix a previously introduced regression.
+      Fixes bug 10987; bugfix on 0.2.4.7-alpha.
index bb24134aef2167b317f3bd5499a7fab605c59224..2832abbd6b66f82e34e50a926bdf2f679079034b 100644 (file)
@@ -2088,7 +2088,6 @@ connection_ap_handshake_socks_resolved_addr(entry_connection_t *conn,
   }
 }
 
-
 /** Send an answer to an AP connection that has requested a DNS lookup via
  * SOCKS.  The type should be one of RESOLVED_TYPE_(IPV4|IPV6|HOSTNAME) or -1
  * for unreachable; the answer should be in the format specified in the socks
@@ -2280,14 +2279,14 @@ connection_ap_handshake_socks_reply(entry_connection_t *conn, char *reply,
       buf[1] = (char)status;
       buf[2] = 0;
       buf[3] = 1; /* ipv4 addr */
-      /* 4 bytes for the header, 2 bytes for the port and 4 for the address. */
+      /* 4 bytes for the header, 2 bytes for the port, 4 for the address. */
       buf_len = 10;
     } else { /* AF_INET6. */
       buf[0] = 5; /* version 5 */
       buf[1] = (char)status;
       buf[2] = 0;
       buf[3] = 4; /* ipv6 addr */
-      /* 4 bytes for the header, 2 bytes for the port and 16 for the address. */
+      /* 4 bytes for the header, 2 bytes for the port, 16 for the address. */
       buf_len = 22;
     }
     connection_write_to_buf(buf,buf_len,ENTRY_TO_CONN(conn));