From: Bob Beck Date: Fri, 27 Mar 2026 21:34:16 +0000 (-0600) Subject: Don't eat a NULL if a queryfile is not provided X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d02f02e0a774db4a5eb30bc7459dc116f7d70fb6;p=thirdparty%2Fopenssl.git Don't eat a NULL if a queryfile is not provided Fixes: 18cd23df8a8f2 "Remove "noise" comments from TS files." Reviewed-by: Paul Dale Reviewed-by: Eugene Syromiatnikov MergeDate: Tue Mar 31 09:51:38 2026 (Merged from https://github.com/openssl/openssl/pull/30608) --- diff --git a/apps/ts.c b/apps/ts.c index 6cfac28dda9..f231f16ef9b 100644 --- a/apps/ts.c +++ b/apps/ts.c @@ -339,7 +339,7 @@ int ts_main(int argc, char **argv) if ((in != NULL) && (queryfile != NULL)) goto opthelp; if (in == NULL) { - if ((conf == NULL) || (token_in != 0)) + if (conf == NULL || token_in != 0 || queryfile == NULL) goto opthelp; } ret = !reply_command(conf, section, queryfile,