From: Landon Fuller Date: Thu, 3 May 2007 17:45:24 +0000 (+0000) Subject: crypto_digest_update() should return false on failure (which should never occur,... X-Git-Tag: Release-7.0.0~6442 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a822c65560f84e6df031c40b10e7818cc287af0f;p=bacula%2Fbacula 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 --- 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; } }