From 916e98d3fa3c8d1bfa3760ba5675e8f12bc9eab9 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 29 May 2007 14:41:24 +0000 Subject: 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 --- src/common/compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/compat.c b/src/common/compat.c index b9888d9a5c..852cfffae3 100644 --- a/src/common/compat.c +++ b/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; -- cgit v1.2.3-54-g00ecf