summaryrefslogtreecommitdiffstats
path: root/server/vhost.c
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2016-12-22 15:22:22 +0100
committerEric Covener <covener@apache.org>2016-12-22 15:22:22 +0100
commit4bc922d0c3aa1b9ed7a3222319fa8a4375b504e4 (patch)
treed0bb49ce06b86d4a5870b321ca95287f6c635d0c /server/vhost.c
parentfix indent (diff)
downloadapache2-4bc922d0c3aa1b9ed7a3222319fa8a4375b504e4.tar.xz
apache2-4bc922d0c3aa1b9ed7a3222319fa8a4375b504e4.zip
remove initial isascii check entirely
We are already checking an even narrower set of characters just below. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1775664 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/vhost.c')
-rw-r--r--server/vhost.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/server/vhost.c b/server/vhost.c
index e0aaedc656..c4bd846f7d 100644
--- a/server/vhost.c
+++ b/server/vhost.c
@@ -757,12 +757,6 @@ static apr_status_t strict_hostname_check(request_rec *r, char *host)
int is_dotted_decimal = 1, leading_zeroes = 0, dots = 0;
for (ch = host; *ch; ch++) {
-#if ! APR_CHARSET_EBCDIC
- if (!apr_isascii(*ch)) {
- goto bad;
- }
- else
-#endif
if (apr_isalpha(*ch) || *ch == '-') {
is_dotted_decimal = 0;
}