Browse Source

[Minor] Check ucl object type

tags/3.3
Vsevolod Stakhov 1 year ago
parent
commit
ab79340651
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libserver/milter.c

+ 1
- 1
src/libserver/milter.c View File

@@ -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;
}

Loading…
Cancel
Save