]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Oops, fix refactoring aftermath
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 24 Jan 2022 19:48:52 +0000 (19:48 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 24 Jan 2022 19:48:52 +0000 (19:48 +0000)
src/libserver/protocol.c
src/libstat/backends/redis_backend.c

index f09ec0b672d3cef13917fe788758aeff5be2d59a..489bba6dd02fc6187540ee2db586c9379db91e50 100644 (file)
@@ -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,
index 8536b80e38b82ec80b66804221688dacfbf025fa..c58f1e68203955015a3acf9b13b7eabaec5472a7 100644 (file)
@@ -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);
                                }