Don't ask for -iv for ciphers that need no IV.
diff --git a/apps/enc.c b/apps/enc.c
index a64c654..53de51a 100644
--- a/apps/enc.c
+++ b/apps/enc.c
@@ -560,7 +560,8 @@
 			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,