diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-04-14 16:07:37 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-04-14 16:07:37 +0100 |
commit | 0609488580672b56ef856a9ec06caff6fa8976e0 (patch) | |
tree | f2a994350831127f0425a5ceb231f684b84c49b5 | |
parent | 0f1e8e07e0a45d375176f017d8fdef131d537909 (diff) | |
download | rspamd-0609488580672b56ef856a9ec06caff6fa8976e0.tar.gz rspamd-0609488580672b56ef856a9ec06caff6fa8976e0.zip |
[Minor] Allow 'default' to be the default result
-rw-r--r-- | src/libmime/scan_result.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libmime/scan_result.c b/src/libmime/scan_result.c index d299aa2ee..fb8024928 100644 --- a/src/libmime/scan_result.c +++ b/src/libmime/scan_result.c @@ -897,6 +897,9 @@ rspamd_find_metric_result (struct rspamd_task *task, if (name == NULL) { return task->result; } + else if (strcmp (name, "default") == 0) { + return task->result; + } DL_FOREACH (task->result, res) { if (res->name && strcmp (res->name, name) == 0) { |