Permalink
Browse files

Fix bug in certfile/keyfile checking code to fatal on startup. Thanks…

… Geo.
  • Loading branch information...
thommey committed Nov 6, 2017
1 parent 5164824 commit 11d431e8132a73e7ccdbc881aedef1cc89d8edd5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/tls.c
View
@@ -138,7 +138,7 @@ int ssl_init()
return -1;
}
ssl_files_loaded = 0;
if (tls_certfile[0] ^ tls_keyfile[0]) {
if ((tls_certfile[0] == '\0') != (tls_keyfile[0] == '\0')) {
/* Both need to be set or unset */
putlog(LOG_MISC, "*", "ERROR: TLS: %s set but %s unset. Both must be set "
"to use a certificate, or unset both to disable.",

0 comments on commit 11d431e

Please sign in to comment.