aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2017-02-22 21:06:27 +0100
committerRichard Levitte <levitte@openssl.org>2017-02-22 21:07:28 +0100
commit50799f3558981eac0482d3ea77b21c58b56d4871 (patch)
tree15b7dbbcc0a6fd940f207d35e8d61bcf7d4a7d89 /crypto
parent7c6335a6c74bd7742ec23fa45f84acf32985527f (diff)
downloadopenssl-50799f3558981eac0482d3ea77b21c58b56d4871.tar.gz
Fix typo, should be && rather than &
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2689)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/ec/ec_asn1.c2
1 files changed, 1 insertions, 1 deletions
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;