From: Aki Tuomi Date: Wed, 26 Mar 2025 10:00:49 +0000 (+0200) Subject: auth: db-oauth2 - Don't mix table and providers_arr X-Git-Tag: 2.4.1~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1e3726fed47f52ee5da5cc6679cfbdefc622ce30;p=thirdparty%2Fdovecot%2Fcore.git auth: db-oauth2 - Don't mix table and providers_arr It's not needed. --- diff --git a/src/auth/db-oauth2.c b/src/auth/db-oauth2.c index fb61272754..bd807e30b5 100644 --- a/src/auth/db-oauth2.c +++ b/src/auth/db-oauth2.c @@ -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;