mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user