From 2d9856cca866cd3aa9b4fb357a9636c283b9d645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Fri, 2 Oct 2020 06:52:11 +0200 Subject: Bump liberty, use iscntrl_ascii() --- degesch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'degesch.c') diff --git a/degesch.c b/degesch.c index ed1fb34..04a09e8 100644 --- a/degesch.c +++ b/degesch.c @@ -2246,7 +2246,7 @@ config_validate_nonjunk_string { // Not even a tabulator unsigned char c = item->value.string.str[i]; - if (c < 32) + if (iscntrl_ascii (c)) { error_set (e, "control characters are not allowed"); return false; @@ -8059,7 +8059,7 @@ static bool validate_server_name (const char *name) { for (const unsigned char *p = (const unsigned char *) name; *p; p++) - if (*p < 32 || *p == '.') + if (iscntrl_ascii (*p) || *p == '.') return false; return true; } -- cgit v1.2.3