diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-14 21:57:40 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-14 21:57:40 +0100 |
commit | 1b6e91fb63786d78c6b1c9cdccd50092c0077297 (patch) | |
tree | 65a6e30542d24402909fa6ac06310bffc4073cf7 /src | |
parent | 7e10d7f43edc59e4d7ba446e68d59daa6cae1bda (diff) | |
download | rspamd-1b6e91fb63786d78c6b1c9cdccd50092c0077297.tar.gz rspamd-1b6e91fb63786d78c6b1c9cdccd50092c0077297.zip |
Do not try to check type of NULL.
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/cfg_rcl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index 9c4f34326..a815f01fa 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -530,7 +530,7 @@ rspamd_rcl_metric_handler (rspamd_mempool_t *pool, const ucl_object_t *obj, /* Handle grouped symbols */ val = ucl_object_find_key (obj, "group"); - if (ucl_object_type (val) == UCL_OBJECT) { + if (val != NULL && ucl_object_type (val) == UCL_OBJECT) { it = NULL; while ((cur = ucl_iterate_object (val, &it, false))) { if (ucl_object_type (cur) == UCL_OBJECT) { |