]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Make var_expand() comparison consistent
authorKarl Fleischmann <karl.fleischmann@open-xchange.com>
Thu, 7 Jul 2022 08:02:57 +0000 (10:02 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Thu, 7 Jul 2022 13:49:27 +0000 (13:49 +0000)
src/lib/var-expand.c

index 6245c1266ae2b5c344cd8009c9961cf09ec8e987..ba74962faa51ce5036677fa5c6e7331345764c6d 100644 (file)
@@ -232,7 +232,7 @@ var_expand_hash(struct var_expand_context *ctx,
        string_t *tmp = t_str_new(method->digest_size);
 
        if ((ret = var_expand_long(ctx, field, strlen(field),
-                                  &value, error_r)) < 1) {
+                                  &value, error_r)) <= 0) {
                return ret;
        }