]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: ldap_request_send_subquery() - Rename table to var_expand_table
authorMarco Bettini <marco.bettini@open-xchange.com>
Fri, 15 Sep 2023 13:58:59 +0000 (13:58 +0000)
committerMarco Bettini <marco.bettini@open-xchange.com>
Fri, 15 Sep 2023 14:52:55 +0000 (14:52 +0000)
src/auth/db-ldap.c

index 2f9f93b23503a05dcef2c6c3d4ea71df46a6d9b2..7632bd331f678008f11253ae0120468e276fa34a 100644 (file)
@@ -639,7 +639,7 @@ ldap_request_send_subquery(struct ldap_connection *conn,
        char *name;
        struct auth_request *auth_request = request->request.auth_request;
        struct ldap_field_find_subquery_context ctx;
-       const struct var_expand_table *table =
+       const struct var_expand_table *var_expand_table =
                auth_request_get_var_expand_table(auth_request, NULL);
        const struct var_expand_func_table *ptr;
        struct var_expand_func_table *ftable;
@@ -666,8 +666,10 @@ ldap_request_send_subquery(struct ldap_connection *conn,
        array_foreach(request->attr_map, field) {
                if (field->ldap_attr_name[0] == '\0') {
                        str_truncate(tmp_str, 0);
-                       if (var_expand_with_funcs(tmp_str, field->value, table,
-                                                 array_front(&var_funcs_table), &ctx, &error) <= 0) {
+                       if (var_expand_with_funcs(tmp_str, field->value,
+                                                 var_expand_table,
+                                                 array_front(&var_funcs_table),
+                                                 &ctx, &error) <= 0) {
                                e_error(authdb_event(auth_request),
                                        "Failed to expand subquery %s: %s",
                                        field->value, error);