Browse Source

[Minor] Do not add maps from weird data

Issue: #1143
Reported by: @AlexeySa
tags/1.4.0
Vsevolod Stakhov 7 years ago
parent
commit
91ddd33ee6
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/libutil/map.c

+ 5
- 0
src/libutil/map.c View File

@@ -1666,6 +1666,11 @@ rspamd_map_add_from_ucl (struct rspamd_config *cfg,
goto err;
}
}
else {
msg_err_config ("map has invalid type for value: %s",
ucl_object_type_to_string (ucl_object_type (obj)));
goto err;
}

rspamd_map_calculate_hash (map);
msg_info_map ("added map from ucl");

Loading…
Cancel
Save