aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-29 11:14:12 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-29 11:14:12 +0000
commit73b7a92d54aa7be83d44d5eddb20e4b92c6e4b02 (patch)
tree20852acb92cc34cdc404305bb33641abb0bac20d
parent3ed4cae07ea2adfea3fe5eb4070dcf59f9e11f5d (diff)
downloadrspamd-73b7a92d54aa7be83d44d5eddb20e4b92c6e4b02.tar.gz
rspamd-73b7a92d54aa7be83d44d5eddb20e4b92c6e4b02.zip
[Minor] Fix reject action parsing
-rw-r--r--src/libserver/cfg_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index f797b3654..1a2d40142 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -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];