From 5c07bddfb5bd356f186fe0c48ed7dad7dbc7e9eb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 17 Jul 2016 21:38:29 +0200 Subject: ... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/types/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/types') diff --git a/src/types/message.c b/src/types/message.c index e7c844d..b0a6469 100644 --- a/src/types/message.c +++ b/src/types/message.c @@ -332,7 +332,7 @@ static int validate_header(const char* restrict header, size_t length) { char* restrict p = memchr(header, ':', length * sizeof(char)); - if (verify_utf8(header, 0) < 0) + if (verify_utf8(header) < 0) /* Either the string is not UTF-8, or your are under an UTF-8 attack, let's just call this unrecoverable because the client will not correct. */ return -2; -- cgit v1.2.3-70-g09d2