]> git.sur5r.net Git - bacula/bacula/commitdiff
crypto_digest_update() should return false on failure (which should never occur,...
authorLandon Fuller <landonf@opendarwin.org>
Thu, 3 May 2007 17:45:24 +0000 (17:45 +0000)
committerLandon Fuller <landonf@opendarwin.org>
Thu, 3 May 2007 17:45:24 +0000 (17:45 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4688 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/lib/crypto.c

index b51ad97aea8b4687131b9a76926a33a321732843..b5cd07c12a7ba9b05184b8537ef7d56c41f38e34 100644 (file)
@@ -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;
    }
 }