Skip to content

Commit

Permalink
#178 check if server_ssl_ca is set in config before trying to read th…
Browse files Browse the repository at this point in the history
…e value
  • Loading branch information
mapemapemape committed Aug 30, 2022
1 parent 467c816 commit 8000eac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/nivlheim_client
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,9 @@ if (!%config) {

# Set certain options from the config file if they aren't already set.
if (!defined($opt{ca_file}) || $opt{ca_file} eq '') {
$opt{ca_file} = $config{'settings'}{'server_ssl_ca'};
if(defined($config{'settings'}{'server_ssl_ca'})) {
$opt{ca_file} = $config{'settings'}{'server_ssl_ca'};
}
}

# Use default options if nothing else is specified.
Expand Down

0 comments on commit 8000eac

Please sign in to comment.