mirror of
https://github.com/openssl/openssl.git
synced 2024-12-16 05:23:50 +08:00
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)
This commit is contained in:
parent
9010b7bc6e
commit
3f97052392
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user