]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-var-expand: Ensure provider returns either error or value
authorAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 28 Jan 2025 14:10:10 +0000 (16:10 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:16 +0000 (12:34 +0200)
src/lib-var-expand/var-expand.c

index 960412045b888f7cae988ece394ec4e49fffd175..d1e3e20525f54c022199accc79b6c43864110e06 100644 (file)
@@ -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;
 }