From 19bfd5e302954bf2ce1f892dc46ba1bb08c15aa8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 24 Jan 2022 19:04:26 +0000 Subject: [Minor] Fix a name and the description of bogus `user` field in the task --- src/libserver/roll_history.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libserver/roll_history.c') diff --git a/src/libserver/roll_history.c b/src/libserver/roll_history.c index a8c1c42a9..45b847923 100644 --- a/src/libserver/roll_history.c +++ b/src/libserver/roll_history.c @@ -144,8 +144,8 @@ rspamd_roll_history_update (struct roll_history *history, rspamd_strlcpy (row->message_id, MESSAGE_FIELD (task, message_id), sizeof (row->message_id)); } - if (task->user) { - rspamd_strlcpy (row->user, task->user, sizeof (row->user)); + if (task->auth_user) { + rspamd_strlcpy (row->user, task->auth_user, sizeof (row->user)); } else { row->user[0] = '\0'; -- cgit v1.2.3