Navigation Menu

Skip to content

Commit

Permalink
Fix bug in certfile/keyfile checking code to fatal on startup. Thanks…
Browse files Browse the repository at this point in the history
… Geo.
  • Loading branch information
thommey committed Nov 6, 2017
1 parent 5164824 commit 11d431e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tls.c
Expand Up @@ -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.",
Expand Down

0 comments on commit 11d431e

Please sign in to comment.