aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libucl
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-03-13 15:06:03 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-03-13 15:06:03 +0000
commitb368f28b84e7c57854eca33931b9758b647ae6eb (patch)
tree2a1f123ca8bcac2a4c58da8b075c27fe254f9ef2 /contrib/libucl
parentbc1d4d92f59aab0b218dccdb93b56a2ed5392ef1 (diff)
downloadrspamd-b368f28b84e7c57854eca33931b9758b647ae6eb.tar.gz
rspamd-b368f28b84e7c57854eca33931b9758b647ae6eb.zip
[Fix] Libucl: Fix messagepack autodetection
Diffstat (limited to 'contrib/libucl')
-rw-r--r--contrib/libucl/ucl_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/libucl/ucl_parser.c b/contrib/libucl/ucl_parser.c
index 354bfe857..b18fd06ce 100644
--- a/contrib/libucl/ucl_parser.c
+++ b/contrib/libucl/ucl_parser.c
@@ -2984,7 +2984,7 @@ ucl_parser_add_chunk_full (struct ucl_parser *parser, const unsigned char *data,
if (parse_type == UCL_PARSE_AUTO && len > 0) {
/* We need to detect parse type by the first symbol */
- if ((*data & 0x80) == 0x80 && (*data >= 0xdc && *data <= 0xdf)) {
+ if ((*data & 0x80) == 0x80) {
parse_type = UCL_PARSE_MSGPACK;
}
else if (*data == '(') {