aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-17 21:38:29 +0200
committerMattias Andrée <maandree@kth.se>2016-07-17 21:38:29 +0200
commit5c07bddfb5bd356f186fe0c48ed7dad7dbc7e9eb (patch)
tree19272f3f4e72a0e7013b6603fa5500fd1400ce0c
parentUngeneralise verify_utf8 (diff)
downloadcoopgammad-5c07bddfb5bd356f186fe0c48ed7dad7dbc7e9eb.tar.gz
coopgammad-5c07bddfb5bd356f186fe0c48ed7dad7dbc7e9eb.tar.bz2
coopgammad-5c07bddfb5bd356f186fe0c48ed7dad7dbc7e9eb.tar.xz
...
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/types/message.c2
1 files changed, 1 insertions, 1 deletions
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;