[openssl-commits] [openssl] OpenSSL_1_0_2-stable update

Rich Salz rsalz at openssl.org
Thu May 11 15:13:17 UTC 2017


The branch OpenSSL_1_0_2-stable has been updated
       via  b020bf6528cdf992596a63814f521bc036826ad9 (commit)
      from  ea3fc6010f56bad83560592b54bc54de962bbd39 (commit)


- Log -----------------------------------------------------------------
commit b020bf6528cdf992596a63814f521bc036826ad9
Author: Pauli <paul.dale at oracle.com>
Date:   Thu May 11 10:45:38 2017 +1000

    Remove dead code.
    
    The second BN_is_zero test can never be true.
    
    Reviewed-by: Andy Polyakov <appro at openssl.org>
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/3434)
    (cherry picked from commit 3f97052392cb10fca5309212bf720685262ad4a6)

-----------------------------------------------------------------------

Summary of changes:
 crypto/bn/bn_print.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/crypto/bn/bn_print.c b/crypto/bn/bn_print.c
index f121fb6..f85a655 100644
--- a/crypto/bn/bn_print.c
+++ b/crypto/bn/bn_print.c
@@ -82,8 +82,6 @@ char *BN_bn2hex(const BIGNUM *a)
     p = buf;
     if (a->neg)
         *(p++) = '-';
-    if (BN_is_zero(a))
-        *(p++) = '0';
     for (i = a->top - 1; i >= 0; i--) {
         for (j = BN_BITS2 - 8; j >= 0; j -= 8) {
             /* strip leading zeros */


More information about the openssl-commits mailing list