commit f90765d: [Minor] Oops, fix refactoring aftermath

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Jan 24 19:56:04 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-01-24 19:48:52 +0000
URL: https://github.com/rspamd/rspamd/commit/f90765d9c840b17ad68fe2f422807f70ab08ae41 (HEAD -> master)

[Minor] Oops, fix refactoring aftermath

---
 src/libserver/protocol.c             | 2 +-
 src/libstat/backends/redis_backend.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

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);
 				}


More information about the Commits mailing list