Fix: failed to open config file if not specified when using CA commands
authorHansruedi Patzen <hp@revy.ch>
Sat, 20 Feb 2016 16:27:02 +0000 (17:27 +0100)
committerRichard Levitte <levitte@openssl.org>
Mon, 9 May 2016 14:55:47 +0000 (16:55 +0200)
commit2e66d3d674d3a54593e0cbb4ff1f6039fd965d66
tree8395860505c56252d0c4973474d6140cdf03159b
parente8173157021518d3595fe8df62ea602940e6c8f4
Fix: failed to open config file if not specified when using CA commands

Issue was introduced in
https://github.com/openssl/openssl/commit/a0a82324f965bbcc4faed4e1ee3fcaf81ea52166

This patch fixes an issue which causes the 'openssl ca' commands to
fail if '-config' is not specified even if it says so otherwise.
Problem is that the default config is not loaded and the conf variable
is NULL which causes an exception.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
apps/ca.c