diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2022-01-24 19:04:26 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2022-01-24 19:04:26 +0000 |
commit | 19bfd5e302954bf2ce1f892dc46ba1bb08c15aa8 (patch) | |
tree | e313a5356d64b095960bca6ccd569a99180ae5b2 /src/libserver/protocol.c | |
parent | 22db618165cfb1ee0f3ff808fd27603c55cf9234 (diff) | |
download | rspamd-19bfd5e302954bf2ce1f892dc46ba1bb08c15aa8.tar.gz rspamd-19bfd5e302954bf2ce1f892dc46ba1bb08c15aa8.zip |
[Minor] Fix a name and the description of bogus `user` field in the task
Diffstat (limited to 'src/libserver/protocol.c')
-rw-r--r-- | src/libserver/protocol.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c index eb82a743f..f09ec0b67 100644 --- a/src/libserver/protocol.c +++ b/src/libserver/protocol.c @@ -629,7 +629,7 @@ rspamd_protocol_handle_headers (struct rspamd_task *task, */ msg_debug_protocol ("read user header, value: %T", hv_tok); if (!RSPAMD_TASK_IS_SPAMC (task)) { - task->user = rspamd_mempool_ftokdup (task->task_pool, + task->auth_user = rspamd_mempool_ftokdup (task->task_pool, hv_tok); } else { @@ -964,9 +964,9 @@ urls_protocol_cb (struct rspamd_url *url, struct tree_cb_data *cb) ucl_array_append (cb->top, obj); if (cb->task->cfg->log_urls) { - if (task->user) { - user_field = task->user; - len = strlen (task->user); + if (task->auth_user) { + user_field = task->auth_user; + len = strlen (task->auth_user); has_user = TRUE; } else if (task->from_envelope) { |