Fix typo, should be && rather than &
authorRichard Levitte <levitte@openssl.org>
Wed, 22 Feb 2017 20:06:27 +0000 (21:06 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 22 Feb 2017 20:07:59 +0000 (21:07 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2689)
(cherry picked from commit 50799f3558981eac0482d3ea77b21c58b56d4871)

crypto/ec/ec_asn1.c

index e3295c4a14a125994d8632e6a79363d27f7853a5..cf81841035473d7f626c03496f81519040be14b9 100644 (file)
@@ -73,7 +73,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;