diff options
author | Pauli <paul.dale@oracle.com> | 2017-05-11 10:45:38 +1000 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-05-11 11:13:01 -0400 |
commit | bc8a4d54a87b3ac3307683c94eccf5d817348000 (patch) | |
tree | 9b40706708a7bf0a745942d16a490f5eb55e5237 /crypto/bn | |
parent | 975b993ee6c6772d52d786c6ea43f3d04d6ad88a (diff) |
Remove dead code.
The second BN_is_zero test can never be true.
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3434)
(cherry picked from commit 3f97052392cb10fca5309212bf720685262ad4a6)
Diffstat (limited to 'crypto/bn')
-rw-r--r-- | crypto/bn/bn_print.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/crypto/bn/bn_print.c b/crypto/bn/bn_print.c index a16bde862c..821676067b 100644 --- a/crypto/bn/bn_print.c +++ b/crypto/bn/bn_print.c @@ -33,8 +33,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 */ |