summaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-03-28 07:42:27 -0400
committerNick Mathewson <nickm@torproject.org>2018-03-28 07:42:27 -0400
commitb504c854d34a938943f68c3036840f10a84fcea4 (patch)
tree8898b4c63dfff258bab71dfbe8524a8067858f43 /src/common/util.c
parent09351c34e9bea4d29fb6f4ac8d40e3bee49e12fc (diff)
downloadtor-b504c854d34a938943f68c3036840f10a84fcea4.tar.gz
tor-b504c854d34a938943f68c3036840f10a84fcea4.zip
Rename string_is_valid_hostname -> string_is_valid_nonrfc_hostname
Per discussion on 25055.
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 5ae4d04082..90aaf0ebeb 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -1094,7 +1094,7 @@ string_is_valid_dest(const char *string)
retval = string_is_valid_ipv4_address(string) ||
string_is_valid_ipv6_address(string) ||
- string_is_valid_hostname(string);
+ string_is_valid_nonrfc_hostname(string);
tor_free(tmp);
@@ -1108,7 +1108,7 @@ string_is_valid_dest(const char *string)
* with misconfigured zones that have been encountered in the wild.
*/
int
-string_is_valid_hostname(const char *string)
+string_is_valid_nonrfc_hostname(const char *string)
{
int result = 1;
int has_trailing_dot;