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:
1320d25
)
Fix a slightly confusing if condition in a2i_ASN1_INTEGER.
author
Bernd Edlinger
<bernd.edlinger@hotmail.de>
Wed, 15 Feb 2017 19:01:53 +0000
(20:01 +0100)
committer
Rich Salz
<rsalz@openssl.org>
Fri, 17 Feb 2017 14:57:27 +0000
(09:57 -0500)
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2640)
(cherry picked from commit
aa402e2ba408254c052b5750b14e7f01e48bced1
)
crypto/asn1/f_int.c
patch
|
blob
|
history
diff --git
a/crypto/asn1/f_int.c
b/crypto/asn1/f_int.c
index 51fc884b5eb5077647106745c5432694ac64ec2b..ec556c92dcb1e9dad4b3d39b511deca39b2a4092 100644
(file)
--- a/
crypto/asn1/f_int.c
+++ b/
crypto/asn1/f_int.c
@@
-103,7
+103,7
@@
int a2i_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *bs, char *buf, int size)
bufp = (unsigned char *)buf;
if (first) {
first = 0;
- if ((bufp[0] == '0') && (buf[1] == '0')) {
+ if ((bufp[0] == '0') && (buf
p
[1] == '0')) {
bufp += 2;
i -= 2;
}