]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a comment in tor_addr_parse
authorteor <teor2345@gmail.com>
Sun, 21 Dec 2014 18:35:42 +0000 (13:35 -0500)
committerNick Mathewson <nickm@torproject.org>
Sun, 21 Dec 2014 18:35:42 +0000 (13:35 -0500)
src/common/address.c

index a3b5df66bce467008296ebcfb2fc357bdc9223fc..0b475fc9fda4488c2f33717c99d0074247fd4043 100644 (file)
@@ -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;