From: Neil Horman Date: Thu, 19 Jun 2025 16:38:41 +0000 (-0400) Subject: Fix exit code for s_time when -new command line switch specified X-Git-Tag: openssl-3.4.2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7976a42c45df01806305481b9338da74060aa2df;p=thirdparty%2Fopenssl.git Fix exit code for s_time when -new command line switch specified When operating with the -new switch in apps/openssl s_time, we neglect to set the exit code properly, and so the app exits with a code of 1 rather than 0 as expected Fixes #27856 Reviewed-by: Tomas Mraz Reviewed-by: Dmitry Belyavskiy (Merged from https://github.com/openssl/openssl/pull/27857) (cherry picked from commit b6ff5598539bf91608246ed81b4b534cbea6539d) --- diff --git a/apps/s_time.c b/apps/s_time.c index 0d5bd122872..96788b9b93b 100644 --- a/apps/s_time.c +++ b/apps/s_time.c @@ -323,8 +323,10 @@ int s_time_main(int argc, char **argv) */ next: - if (!(perform & 2)) + if (!(perform & 2)) { + ret = 0; goto end; + } printf("\n\nNow timing with session id reuse.\n"); /* Get an SSL object so we can reuse the session id */