From: Karl Fleischmann Date: Thu, 7 Jul 2022 07:59:31 +0000 (+0200) Subject: var-expand-crypt: Make var_expand() comparisons consistent X-Git-Tag: 2.4.0~3787 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04cfb36e0686abfee89c478e2bd3414014bef37d;p=thirdparty%2Fdovecot%2Fcore.git var-expand-crypt: Make var_expand() comparisons consistent --- diff --git a/src/plugins/var-expand-crypt/var-expand-crypt-plugin.c b/src/plugins/var-expand-crypt/var-expand-crypt-plugin.c index 73ab5d79a8..63b5485f7d 100644 --- a/src/plugins/var-expand-crypt/var-expand-crypt-plugin.c +++ b/src/plugins/var-expand-crypt/var-expand-crypt-plugin.c @@ -164,7 +164,7 @@ var_expand_encrypt(struct var_expand_context *_ctx, string_t *tmp = t_str_new(128); if ((ret = var_expand_long(_ctx, field, strlen(field), - &value, error_r)) < 1) { + &value, error_r)) <= 0) { return ret; } @@ -244,7 +244,7 @@ var_expand_decrypt(struct var_expand_context *_ctx, string_t *tmp = t_str_new(128); if ((ret = var_expand_long(_ctx, field, strlen(field), - &value, error_r)) < 1) { + &value, error_r)) <= 0) { return ret; }