projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9010b7b
)
Remove dead code.
author
Pauli
<paul.dale@oracle.com>
Thu, 11 May 2017 00:45:38 +0000
(10:45 +1000)
committer
Rich Salz
<rsalz@openssl.org>
Thu, 11 May 2017 15:03:40 +0000
(11:03 -0400)
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)
crypto/bn/bn_print.c
patch
|
blob
|
history
diff --git
a/crypto/bn/bn_print.c
b/crypto/bn/bn_print.c
index a16bde862c328f02bc2066a543b836ae18a47506..821676067b96449dcb6c9cecb000e0536580033f 100644
(file)
--- 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 */