diff options
author | kinichiro <kinichiro.inoguchi@gmail.com> | 2019-12-11 21:12:53 +0900 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2019-12-13 13:39:31 +1000 |
commit | dd0139f416257ec5632414ed3ad8c61d07ba07ec (patch) | |
tree | e19d65a4f194c15a443bbace193dc3656762cbb6 /apps/ts.c | |
parent | ebe19ab86c0faf3f02b0c30d8da0d1cadb0fb33a (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)
Diffstat (limited to 'apps/ts.c')
-rw-r--r-- | apps/ts.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -293,7 +293,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; |