]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: db-oauth2 - Don't mix table and providers_arr
authorAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 26 Mar 2025 10:00:49 +0000 (12:00 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 28 Mar 2025 06:11:49 +0000 (08:11 +0200)
It's not needed.

src/auth/db-oauth2.c

index fb61272754ff0373a7286727ad838354c68b7a6c..bd807e30b55fcd52c34807c10f3880214b244948 100644 (file)
@@ -381,13 +381,9 @@ db_oauth2_add_extra_fields(struct db_oauth2_request *req, const char **error_r)
                { "oauth2", db_oauth2_var_expand_func_oauth2 },
                { NULL, NULL }
        };
-       const struct var_expand_provider *provider_arr[] = {
-               func_table,
-               NULL
-       };
        struct var_expand_params params = {
                .table = auth_request_get_var_expand_table(req->auth_request),
-               .providers_arr = provider_arr,
+               .providers = func_table,
                .context = req,
        };
        struct auth_request *request = req->auth_request;