From 879a9556db66da0611bb971d85780f79ee2abaa8 Mon Sep 17 00:00:00 2001 From: Peter Waltenberg Date: Thu, 9 Jul 2015 14:57:30 -0400 Subject: 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 06ac77b..f09c802 100644 --- a/apps/ecparam.c +++ b/apps/ecparam.c @@ -422,8 +422,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"); } -- 1.7.12.1