Permalink
Browse files

Swap incorrect 'ssl-privatekey/certificate not loaded' error messages.

…Fixes #445

Found by: Geo / Patch by: Geo
  • Loading branch information...
vanosg committed Aug 19, 2017
1 parent 7f195db commit 4db69e5a53c6bdd6e0039908a1fcabfcceb7acbc
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/tls.c
View
@@ -140,10 +140,10 @@ int ssl_init()
if (!tls_certfile[0]) {
ssl_files_loaded = 0;
if (tls_keyfile[0])
putlog(LOG_MISC, "*", "ERROR: TLS: ssl-privatekey not set, ignoring ssl-certificate.");
putlog(LOG_MISC, "*", "ERROR: TLS: ssl-certificate not set, ignoring ssl-privatekey.");
} else if (!tls_keyfile[0]) {
ssl_files_loaded = 0;
putlog(LOG_MISC, "*", "ERROR: TLS: ssl-certificate not set, ignoring ssl-privatekey.");
putlog(LOG_MISC, "*", "ERROR: TLS: ssl-privatekey not set, ignoring ssl-certificate.");
} else {
ssl_files_loaded = 1;
/* Load our own certificate and private key. Mandatory for acting as

0 comments on commit 4db69e5

Please sign in to comment.