From: Dr. Stephen Henson Date: Fri, 25 Nov 2011 15:01:23 +0000 (+0000) Subject: check counter value against 4 * L, not 4096 X-Git-Tag: master-post-reformat~2070 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ea7fe214c4d05fe6d52bf4d106216acc7eaca773;p=oweals%2Fopenssl.git check counter value against 4 * L, not 4096 --- diff --git a/crypto/dsa/dsa_gen.c b/crypto/dsa/dsa_gen.c index d5f4debc92..3b49420c76 100644 --- a/crypto/dsa/dsa_gen.c +++ b/crypto/dsa/dsa_gen.c @@ -666,7 +666,7 @@ int dsa_builtin_paramgen2(DSA *ret, size_t L, size_t N, /* "offset = offset + n + 1" */ /* step 14 */ - if (counter >= 4096) break; + if (counter >= (int)(4 * L)) break; } } end: