fips_enc.c: assign minimal block size to bad_cipher [to avoid arithmetic
authorAndy Polyakov <appro@openssl.org>
Tue, 18 Oct 2011 18:52:05 +0000 (18:52 +0000)
committerAndy Polyakov <appro@openssl.org>
Tue, 18 Oct 2011 18:52:05 +0000 (18:52 +0000)
exceptions in TLS layer].

fips/utl/fips_enc.c

index 9ed9dbf35a034bad9ace973e94b5e607b013267a..1358b1f4a4bb7f0c40073ecc85a4ef396cf4f1a5 100644 (file)
@@ -102,7 +102,7 @@ static int bad_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr)
 static const EVP_CIPHER bad_cipher =
        {
        0,
-       0,
+       1,
        0,
        0,
        0,