瀏覽代碼

r13042@catbus: nickm | 2007-05-29 10:41:10 -0400
oops; use tor_inet_aton rather than inet_aton in tor_inet_ntop. Spotted by Li-Hui Zhou.


svn:r10389

Nick Mathewson 18 年之前
父節點
當前提交
916e98d3fa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/common/compat.c

+ 1 - 1
src/common/compat.c

@@ -908,7 +908,7 @@ tor_inet_pton(int af, const char *src, void *dst)
         ;
       ++eow;
 
-      if (inet_aton(eow, &in) != 1)
+      if (tor_inet_aton(eow, &in) != 1)
         return 0;
       a = ntohl(in.s_addr);
       words[6] = a >> 16;