mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
Fix BN_print()
Fix a typo made in commit 27c6d63dad
(#4202).
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4235)
This commit is contained in:
parent
9d951a7872
commit
c9b820aa3c
@ -313,7 +313,7 @@ int BN_print(BIO *bp, const BIGNUM *a)
|
||||
for (i = a->top - 1; i >= 0; i--) {
|
||||
for (j = BN_BITS2 - 4; j >= 0; j -= 4) {
|
||||
/* strip leading zeros */
|
||||
v = (int)((a->d[i] >> j) & 0xff);
|
||||
v = (int)((a->d[i] >> j) & 0x0f);
|
||||
if (z || v != 0) {
|
||||
if (BIO_write(bp, &Hex[v], 1) != 1)
|
||||
goto end;
|
||||
|
Loading…
Reference in New Issue
Block a user