mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 12:04:38 +08:00
enc: "bad decrypt" only in decryption
CLA: trivial Signed-off-by: Mathieu Tortuyaux <mathieu.tortuyaux@gmail.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22134)
This commit is contained in:
parent
e40d538ad7
commit
0e138b7b59
@ -701,7 +701,10 @@ int enc_main(int argc, char **argv)
|
||||
break;
|
||||
}
|
||||
if (!BIO_flush(wbio)) {
|
||||
BIO_printf(bio_err, "bad decrypt\n");
|
||||
if (enc)
|
||||
BIO_printf(bio_err, "bad encrypt\n");
|
||||
else
|
||||
BIO_printf(bio_err, "bad decrypt\n");
|
||||
goto end;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user