From: Peter Waltenberg Date: Thu, 9 Jul 2015 18:57:30 +0000 (-0400) Subject: Exit on error in ecparam X-Git-Tag: OpenSSL_1_0_1q~123 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b5e972fdd3e777c777f45f59bb65f62673412ade;p=oweals%2Fopenssl.git Exit on error in ecparam Reviewed-by: Tim Hudson (cherry picked from commit 99dcd88035330d59ab40b5bc0f551aca7020cd30) --- 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"); }