diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-17 13:03:36 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-17 13:04:10 +0000 |
commit | 91ddd33ee6aa914d928890bbf3b4665ecd020cfe (patch) | |
tree | 6c0a38f482b8162b56a676629dec7aedc96db657 /src/libutil | |
parent | 2acb3cef220876eb6bcc11c8463998b36bc13b2b (diff) | |
download | rspamd-91ddd33ee6aa914d928890bbf3b4665ecd020cfe.tar.gz rspamd-91ddd33ee6aa914d928890bbf3b4665ecd020cfe.zip |
[Minor] Do not add maps from weird data
Issue: #1143
Reported by: @AlexeySa
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/map.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libutil/map.c b/src/libutil/map.c index f240e5f84..eaaea4ac0 100644 --- a/src/libutil/map.c +++ b/src/libutil/map.c @@ -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"); |