diff options
Diffstat (limited to 'apps/enc.c')
-rw-r--r-- | apps/enc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/enc.c b/apps/enc.c index a64c654d4d..53de51ad72 100644 --- a/apps/enc.c +++ b/apps/enc.c @@ -560,7 +560,8 @@ bad: BIO_printf(bio_err,"invalid hex iv value\n"); goto end; } - if ((hiv == NULL) && (str == NULL)) + if ((hiv == NULL) && (str == NULL) + && EVP_CIPHER_iv_length(cipher) != 0) { /* No IV was explicitly set and no IV was generated * during EVP_BytesToKey. Hence the IV is undefined, |