瀏覽代碼

Fix a comment in tor_addr_parse

teor 9 年之前
父節點
當前提交
769fc5af09
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/common/address.c

+ 2 - 1
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;