From: Vsevolod Stakhov Date: Mon, 24 Jan 2022 19:48:52 +0000 (+0000) Subject: [Minor] Oops, fix refactoring aftermath X-Git-Tag: 3.2~85 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f90765d9c840b17ad68fe2f422807f70ab08ae41;p=rspamd.git [Minor] Oops, fix refactoring aftermath --- diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c index f09ec0b67..489bba6dd 100644 --- a/src/libserver/protocol.c +++ b/src/libserver/protocol.c @@ -805,7 +805,7 @@ rspamd_protocol_control_parser_init (void) rspamd_rcl_add_default_handler (sub, "user", rspamd_rcl_parse_struct_string, - G_STRUCT_OFFSET (struct rspamd_task, user), + G_STRUCT_OFFSET (struct rspamd_task, auth_user), 0, NULL); rspamd_rcl_add_default_handler (sub, diff --git a/src/libstat/backends/redis_backend.c b/src/libstat/backends/redis_backend.c index 8536b80e3..c58f1e682 100644 --- a/src/libstat/backends/redis_backend.c +++ b/src/libstat/backends/redis_backend.c @@ -208,7 +208,7 @@ rspamd_redis_expand_object (const gchar *pattern, state = just_char; break; case 'u': - elt = GET_TASK_ELT (task, user); + elt = GET_TASK_ELT (task, auth_user); if (elt) { tlen += strlen (elt); } @@ -299,7 +299,7 @@ rspamd_redis_expand_object (const gchar *pattern, state = just_char; break; case 'u': - elt = GET_TASK_ELT (task, user); + elt = GET_TASK_ELT (task, auth_user); if (elt) { d += rspamd_strlcpy (d, elt, end - d); }