commit e49e683: [Minor] Oops: another format string

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Aug 15 15:00:04 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-08-15 15:56:04 +0100
URL: https://github.com/rspamd/rspamd/commit/e49e683f0614b5f10a3c2f9d13c8cbdaf739364d (HEAD -> master)

[Minor] Oops: another format string

---
 src/libserver/composites.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/libserver/composites.c b/src/libserver/composites.c
index df77c4f07..33926f6e5 100644
--- a/src/libserver/composites.c
+++ b/src/libserver/composites.c
@@ -272,10 +272,9 @@ rspamd_composite_process_single_symbol (struct composites_data *cd,
 				msg_debug_composites ("symbol %s in composite %s misses required option %s",
 						sym,
 						cd->composite->sym,
-						ms->score,
-						cur_opt->type == RSPAMD_COMPOSITE_OPTION_PLAIN ?
+						(cur_opt->type == RSPAMD_COMPOSITE_OPTION_PLAIN ?
 						  cur_opt->data.match :
-						  rspamd_regexp_get_pattern (cur_opt->data.re));
+						  rspamd_regexp_get_pattern (cur_opt->data.re)));
 				ms = NULL;
 
 				break;


More information about the Commits mailing list