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:28 +0000 (21:07 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2689)

crypto/ec/ec_asn1.c

index b6b13d3c10690623f390ffcc983f9caa246383bb..271178f82e89552d039935b3e42e9a4b24b34bc8 100644 (file)
@@ -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;