From 50799f3558981eac0482d3ea77b21c58b56d4871 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 22 Feb 2017 21:06:27 +0100 Subject: [PATCH] Fix typo, should be && rather than & Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/2689) --- crypto/ec/ec_asn1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/ec/ec_asn1.c b/crypto/ec/ec_asn1.c index b6b13d3c10..271178f82e 100644 --- a/crypto/ec/ec_asn1.c +++ b/crypto/ec/ec_asn1.c @@ -24,7 +24,7 @@ int EC_GROUP_get_basis_type(const EC_GROUP *group) /* Find the last non-zero element of group->poly[] */ for (i = 0; - i < (int)OSSL_NELEM(group->poly) & group->poly[i] != 0; + i < (int)OSSL_NELEM(group->poly) && group->poly[i] != 0; i++) continue; -- 2.25.1