summaryrefslogtreecommitdiff
path: root/crypto/asn1/f_enum.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/asn1/f_enum.c')
-rw-r--r--crypto/asn1/f_enum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/f_enum.c b/crypto/asn1/f_enum.c
index 94cd54dbeedd3..527f1d8f87b3f 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;
}