commit 685f50456483fc9b3dde26a73a44c809fb02df5b
parent a641c293017e22679a43699670d934ffe833add2
Author: Joris Vink <joris@coders.se>
Date: Sat, 11 Dec 2021 21:59:41 +0100
Log if no TLS server was configured
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/connection.c b/src/connection.c
@@ -258,6 +258,12 @@ kore_connection_handle(struct connection *c)
switch (c->state) {
case CONN_STATE_TLS_SHAKE:
+ if (primary_dom == NULL) {
+ kore_log(LOG_NOTICE,
+ "TLS handshake but no TLS configured on server");
+ return (KORE_RESULT_ERROR);
+ }
+
if (primary_dom->ssl_ctx == NULL) {
kore_log(LOG_NOTICE,
"TLS configuration for %s not yet complete",