From b5e972fdd3e777c777f45f59bb65f62673412ade Mon Sep 17 00:00:00 2001 From: Peter Waltenberg Date: Thu, 9 Jul 2015 14:57:30 -0400 Subject: [PATCH] Exit on error in ecparam Reviewed-by: Tim Hudson (cherry picked from commit 99dcd88035330d59ab40b5bc0f551aca7020cd30) --- apps/ecparam.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/ecparam.c b/apps/ecparam.c index 1f340a9b84..88ecbc079c 100644 --- a/apps/ecparam.c +++ b/apps/ecparam.c @@ -419,8 +419,9 @@ int MAIN(int argc, char **argv) if (!EC_GROUP_check(group, NULL)) { BIO_printf(bio_err, "failed\n"); ERR_print_errors(bio_err); - } else - BIO_printf(bio_err, "ok\n"); + goto end; + } + BIO_printf(bio_err, "ok\n"); } -- 2.25.1