From ea85bc43e007ab4c6606f07410d586544572fc60 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 25 Jul 2017 12:55:32 +0200 Subject: [PATCH] conf: don't allow slash with hostname in allow/deny directive --- conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf.c b/conf.c index ccc365e..3ba8355 100644 --- a/conf.c +++ b/conf.c @@ -1071,7 +1071,7 @@ parse_allow_deny(char *line, ARR_Instance restrictions, int allow) } } else { - if (DNS_Name2IPAddress(p, &ip_addr, 1) == DNS_Success) { + if (!slashpos && DNS_Name2IPAddress(p, &ip_addr, 1) == DNS_Success) { new_node = (AllowDeny *)ARR_GetNewElement(restrictions); new_node->allow = allow; new_node->all = all;