diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-29 11:14:12 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-29 11:14:12 +0000 |
commit | 73b7a92d54aa7be83d44d5eddb20e4b92c6e4b02 (patch) | |
tree | 20852acb92cc34cdc404305bb33641abb0bac20d | |
parent | 3ed4cae07ea2adfea3fe5eb4070dcf59f9e11f5d (diff) | |
download | rspamd-73b7a92d54aa7be83d44d5eddb20e4b92c6e4b02.tar.gz rspamd-73b7a92d54aa7be83d44d5eddb20e4b92c6e4b02.zip |
[Minor] Fix reject action parsing
-rw-r--r-- | src/libserver/cfg_utils.c | 2 |
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]; |