aboutsummaryrefslogtreecommitdiff
path: root/src/common/address.c
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2014-12-21 13:35:42 -0500
committerNick Mathewson <nickm@torproject.org>2014-12-21 13:35:42 -0500
commit769fc5af09f140ff636131e4172bfcbe267d6b42 (patch)
tree9061b86b993c58ff4d345fcfa395bf6adb1cfd1e /src/common/address.c
parent6fad395300a263badb443bf0feb936d4a554d020 (diff)
downloadtor-769fc5af09f140ff636131e4172bfcbe267d6b42.tar.gz
tor-769fc5af09f140ff636131e4172bfcbe267d6b42.zip
Fix a comment in tor_addr_parse
Diffstat (limited to 'src/common/address.c')
-rw-r--r--src/common/address.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/address.c b/src/common/address.c
index a3b5df66bc..0b475fc9fd 100644
--- a/src/common/address.c
+++ b/src/common/address.c
@@ -1119,7 +1119,8 @@ fmt_addr32(uint32_t addr)
int
tor_addr_parse(tor_addr_t *addr, const char *src)
{
- char *tmp = NULL; /* Holds substring if we got a dotted quad. */
+ /* Holds substring of IPv6 address after removing square brackets */
+ char *tmp = NULL;
int result;
struct in_addr in_tmp;
struct in6_addr in6_tmp;