diff --git a/apps/ec.c b/apps/ec.c index 9ddaddfe5e..c63437fe2a 100644 --- a/apps/ec.c +++ b/apps/ec.c @@ -347,7 +347,10 @@ bad: } if (noout) + { + ret = 0; goto end; + } BIO_printf(bio_err, "writing EC key\n"); if (outformat == FORMAT_ASN1)