diff options
author | Mattias Andrée <maandree@kth.se> | 2016-07-17 21:38:29 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-07-17 21:38:29 +0200 |
commit | 5c07bddfb5bd356f186fe0c48ed7dad7dbc7e9eb (patch) | |
tree | 19272f3f4e72a0e7013b6603fa5500fd1400ce0c /src | |
parent | Ungeneralise verify_utf8 (diff) | |
download | coopgammad-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.c | 2 |
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; |