From: Aki Tuomi Date: Tue, 28 Jan 2025 14:10:10 +0000 (+0200) Subject: lib-var-expand: Ensure provider returns either error or value X-Git-Tag: 2.4.1~240 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49abb6018801fae122e25b95a19a86e7ef06d6c8;p=thirdparty%2Fdovecot%2Fcore.git lib-var-expand: Ensure provider returns either error or value --- diff --git a/src/lib-var-expand/var-expand.c b/src/lib-var-expand/var-expand.c index 960412045b..d1e3e20525 100644 --- a/src/lib-var-expand/var-expand.c +++ b/src/lib-var-expand/var-expand.c @@ -392,6 +392,8 @@ static int call_value_provider(const struct var_expand_state *state, ret = -1; } + i_assert(*value_r != NULL || ret == -1); + return ret; }