summaryrefslogtreecommitdiffstats
path: root/apps/info.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/info.c')
-rw-r--r--apps/info.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/info.c b/apps/info.c
index befc62dac1..c024ba446e 100644
--- a/apps/info.c
+++ b/apps/info.c
@@ -40,6 +40,7 @@ int info_main(int argc, char **argv)
int ret = 1, dirty = 0, type = 0;
char *prog;
OPTION_CHOICE o;
+ const char *typedata;
prog = opt_init(argc, argv, info_options);
while ((o = opt_next()) != OPT_EOF) {
@@ -97,7 +98,8 @@ opthelp:
goto opthelp;
}
- BIO_printf(bio_out, "%s\n", OPENSSL_info(type));
+ typedata = OPENSSL_info(type);
+ BIO_printf(bio_out, "%s\n", typedata == NULL ? "Undefined" : typedata);
ret = 0;
end:
return ret;