diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2014-10-14 21:56:04 +0300 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-11-04 00:37:24 -0500 |
commit | 0da4ddda4f8f1c3c931349e45acbdcae2b7cc750 (patch) | |
tree | 0859c28017b5c653cda974dbe978827f011acad0 /src/common | |
parent | 2f1068e68a95a2ad9ba058297b54622323b216c6 (diff) | |
download | tor-0da4ddda4f8f1c3c931349e45acbdcae2b7cc750.tar.gz tor-0da4ddda4f8f1c3c931349e45acbdcae2b7cc750.zip |
Checking if FQDN is actually IPv6 address string and handling that case.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c index e9ee437190..c292c798cc 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -976,7 +976,7 @@ string_is_valid_ipv6_address(const char *string) { struct sockaddr_in sockaddr_dummy; - return (inet_pton(AF_INET6,string,&sockaddr_dummy) == 1); + return (tor_inet_pton(AF_INET6,string,&sockaddr_dummy) == 1); } /** Return true iff <b>string</b> matches a pattern of DNS names |