logic error in DH exist check

This commit is contained in:
Asif Bacchus 2019-10-17 17:58:10 -06:00
parent de5ce23b4e
commit fa41187f9b

View File

@ -87,7 +87,7 @@ if [ "$TLS13_ONLY" = FALSE ]; then
if [ -z "$DH" ]; then
printf "${err}\nA DHparam file must be specified when using TLS 1.2. Exiting.${norm}\n"
exit 5
elif [ -f "$DH" ]; then
elif [ ! -f "$DH" ]; then
printf "${err}\nCannot find specified DHparam file. Exiting.${norm}\n"
exit 5
fi