diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2017-02-15 20:42:40 +0100 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-02-17 09:53:10 -0500 |
commit | 61bdecbdd49faad0c9aed0f3366f1e4ea7f5dc75 (patch) | |
tree | fa0148e9ec6df5ecaa01740bb02d938ca0a96eb6 /crypto/asn1 | |
parent | 9b90ce0b46aed53fdff4d767ca5669dfac211f62 (diff) |
Fix a slightly confusing if condition in a2i_ASN1_ENUMERATED.
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2641)
Diffstat (limited to 'crypto/asn1')
-rw-r--r-- | crypto/asn1/f_enum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/f_enum.c b/crypto/asn1/f_enum.c index 94cd54dbee..527f1d8f87 100644 --- a/crypto/asn1/f_enum.c +++ b/crypto/asn1/f_enum.c @@ -138,7 +138,7 @@ int a2i_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *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; } |