diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-02-21 17:27:35 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-02-21 17:27:35 +0000 |
commit | f3e827165294d34dbd58dbb372525b259f1acb72 (patch) | |
tree | 9e783101f77cbaf695b4db751a757de667094797 /src | |
parent | 1532cff2ce6239df4a2320994bb791d2715e430f (diff) | |
download | tor-f3e827165294d34dbd58dbb372525b259f1acb72.tar.gz tor-f3e827165294d34dbd58dbb372525b259f1acb72.zip |
Style tweaks on code, changes file for 10987
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection_edge.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index bb24134aef..2832abbd6b 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -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)); |