diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-01-29 15:03:21 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-01-29 15:03:21 +0000 |
commit | c70985d47ed3635fe5bedda65e9178f04d84b94e (patch) | |
tree | b634cda9b27a2f582018e5f5c5866a01f06ef08d /src/libserver/task.c | |
parent | 971025ceca5af31e11a1d079302365bb6f3d7f8c (diff) | |
download | rspamd-c70985d47ed3635fe5bedda65e9178f04d84b94e.tar.gz rspamd-c70985d47ed3635fe5bedda65e9178f04d84b94e.zip |
[Rework] Allow to add userdata as symbols options
Diffstat (limited to 'src/libserver/task.c')
-rw-r--r-- | src/libserver/task.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c index c1fcc752f..5c4ca4565 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -1137,7 +1137,8 @@ rspamd_task_log_metric_res (struct rspamd_task *task, j = 0; DL_FOREACH (sym->opts_head, opt) { - rspamd_printf_fstring (&symbuf, "%s;", opt->option); + rspamd_printf_fstring (&symbuf, "%*s;", + (gint)opt->optlen, opt->option); if (j >= max_log_elts) { rspamd_printf_fstring (&symbuf, "...;"); |