]> dgit.raspbian.org Git - dovecot.git/commit
[PATCH 4/6] lib-var-expand: Change escape func signature to return int with error_r
authorAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 21 May 2026 08:00:56 +0000 (11:00 +0300)
committerNoah Meyerhans <noahm@debian.org>
Wed, 16 Sep 2026 19:06:35 +0000 (15:06 -0400)
commit42f88afe333ea25df2a35cadba9a91a647b24b6e
tree42e50e9c5212acbe315180316bd15200530ff1e9
parentb464b21fc5abc17e62736d5c9ac3a83c8f5f6d56
[PATCH 4/6] lib-var-expand: Change escape func signature to return int with error_r

Wire error propagation in var_expand_program_execute_one_real() so a
failing escape function causes the expansion to return -1.

Update all implementations (passdb-sql, userdb-sql, db-ldap, dict-ldap,
auth-request-var-expand) and replace the unsafe auth_request_escape_func_t
cast in auth-request-var-expand.c with a proper bridge wrapper.

Gbp-Pq: Name 0004-lib-var-expand-Change-escape-func-signature-to-retur.patch
src/auth/auth-request-var-expand.c
src/auth/db-ldap.c
src/auth/db-ldap.h
src/auth/passdb-sql.c
src/auth/test-auth-request-var-expand.c
src/auth/test-ldap.c
src/auth/userdb-sql.c
src/lib-dict-backend/dict-ldap.c
src/lib-var-expand/expansion-program.c
src/lib-var-expand/test-var-expand.c
src/lib-var-expand/var-expand.h