diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-08-27 23:47:28 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-08-27 23:47:28 +0100 |
commit | ab79340651d76419815adb5359db685a5680fdc7 (patch) | |
tree | 0e696e09792d5a64098803bb9ec1b746e24f3e91 | |
parent | 379ed84da218ace36a4a443fdac6f89e987bcfe0 (diff) | |
download | rspamd-ab79340651d76419815adb5359db685a5680fdc7.tar.gz rspamd-ab79340651d76419815adb5359db685a5680fdc7.zip |
[Minor] Check ucl object type
-rw-r--r-- | src/libserver/milter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/milter.c b/src/libserver/milter.c index e559495fb..f8ed7be32 100644 --- a/src/libserver/milter.c +++ b/src/libserver/milter.c @@ -1697,7 +1697,7 @@ rspamd_milter_extract_single_header (struct rspamd_milter_session *session, idx_obj = ucl_object_lookup_any (obj, "order", "index", NULL); - if (idx_obj) { + if (idx_obj && (ucl_object_type (idx_obj) == UCL_INT || ucl_object_type (idx_obj) == UCL_FLOAT)) { idx = ucl_object_toint (idx_obj); has_idx = TRUE; } |