From a822c65560f84e6df031c40b10e7818cc287af0f Mon Sep 17 00:00:00 2001 From: Landon Fuller Date: Thu, 3 May 2007 17:45:24 +0000 Subject: [PATCH] crypto_digest_update() should return false on failure (which should never occur, short of programmer error). git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4688 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/lib/crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bacula/src/lib/crypto.c b/bacula/src/lib/crypto.c index b51ad97aea..b5cd07c12a 100644 --- a/bacula/src/lib/crypto.c +++ b/bacula/src/lib/crypto.c @@ -645,9 +645,9 @@ bool crypto_digest_update(DIGEST *digest, const uint8_t *data, uint32_t length) { if (EVP_DigestUpdate(&digest->ctx, data, length) == 0) { openssl_post_errors(digest->jcr, M_ERROR, _("OpenSSL digest update failed")); - return true; - } else { return false; + } else { + return true; } } -- 2.39.5