diff options
Diffstat (limited to 'src/libserver/rspamd_symcache.c')
-rw-r--r-- | src/libserver/rspamd_symcache.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libserver/rspamd_symcache.c b/src/libserver/rspamd_symcache.c index f452c1344..0bd68fca6 100644 --- a/src/libserver/rspamd_symcache.c +++ b/src/libserver/rspamd_symcache.c @@ -3500,13 +3500,10 @@ rspamd_symcache_get_allowed_settings_ids (struct rspamd_symcache *cache, return item->allowed_ids.dyn.n; } else { - while (item->allowed_ids.st[cnt] != 0) { + while (item->allowed_ids.st[cnt] != 0 && cnt < G_N_ELEMENTS (item->allowed_ids.st)) { cnt ++; - - g_assert (cnt < G_N_ELEMENTS (item->allowed_ids.st)); } - *nids = cnt; return item->allowed_ids.st; |