]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix reject action parsing
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 29 Feb 2016 11:14:12 +0000 (11:14 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 29 Feb 2016 11:14:12 +0000 (11:14 +0000)
src/libserver/cfg_utils.c

index f797b365488394f3af89666d03a4332dc98ba3ea..1a2d40142f3491d70f60397be9d7d5a06c5e4b16 100644 (file)
@@ -1547,7 +1547,7 @@ rspamd_config_set_action_score (struct rspamd_config *cfg,
                return FALSE;
        }
 
-       g_assert (act_num > 0 && act_num < METRIC_ACTION_MAX);
+       g_assert (act_num >= METRIC_ACTION_REJECT && act_num < METRIC_ACTION_MAX);
 
        act = &metric->actions[act_num];