summaryrefslogtreecommitdiffstats
path: root/apps/ts.c
diff options
context:
space:
mode:
authorkinichiro <kinichiro.inoguchi@gmail.com>2019-12-11 21:12:53 +0900
committerPauli <paul.dale@oracle.com>2019-12-13 13:40:24 +1000
commit5fe82100857ff194e5728bafe9af1a27c9d5475c (patch)
treebc01f384233ddcbe1147162317dd06fadd9ae6bc /apps/ts.c
parent7a930005adc470ffaa49dbef04010e77d76e0363 (diff)
Check return value after loading config file
CLA: trivial Reviewed-by: Paul Yang <kaishen.yy@antfin.com> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/10607) (cherry picked from commit dd0139f416257ec5632414ed3ad8c61d07ba07ec)
Diffstat (limited to 'apps/ts.c')
-rw-r--r--apps/ts.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/ts.c b/apps/ts.c
index 930c1daaab..44a8f75d4a 100644
--- a/apps/ts.c
+++ b/apps/ts.c
@@ -282,7 +282,8 @@ int ts_main(int argc, char **argv)
goto end;
}
- conf = load_config_file(configfile);
+ if ((conf = load_config_file(configfile)) == NULL)
+ goto end;
if (configfile != default_config_file && !app_load_modules(conf))
goto end;