From: teor Date: Sun, 21 Dec 2014 18:35:42 +0000 (-0500) Subject: Fix a comment in tor_addr_parse X-Git-Tag: tor-0.2.6.2-alpha~49 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=769fc5af09f140ff636131e4172bfcbe267d6b42;p=thirdparty%2Ftor.git Fix a comment in tor_addr_parse --- 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;