aboutsummaryrefslogtreecommitdiff
path: root/crypto/asn1/f_int.c
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2017-02-15 20:01:53 +0100
committerRich Salz <rsalz@openssl.org>2017-02-17 09:54:25 -0500
commitaa402e2ba408254c052b5750b14e7f01e48bced1 (patch)
treec2f466d049da65a6d52da39ee459d039f6a156b9 /crypto/asn1/f_int.c
parent331c16d95f442a19a77ae087afdf26b67c8468f0 (diff)
downloadopenssl-aa402e2ba408254c052b5750b14e7f01e48bced1.zip
openssl-aa402e2ba408254c052b5750b14e7f01e48bced1.tar.gz
openssl-aa402e2ba408254c052b5750b14e7f01e48bced1.tar.bz2
Fix a slightly confusing if condition in a2i_ASN1_INTEGER.
Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2640)
Diffstat (limited to 'crypto/asn1/f_int.c')
-rw-r--r--crypto/asn1/f_int.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/f_int.c b/crypto/asn1/f_int.c
index 51fc884..ec556c9 100644
--- 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') && (bufp[1] == '0')) {
bufp += 2;
i -= 2;
}