diff options
-rw-r--r-- | src/src/tls-openssl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/src/tls-openssl.c b/src/src/tls-openssl.c index 22c0730c3..17cc72133 100644 --- a/src/src/tls-openssl.c +++ b/src/src/tls-openssl.c @@ -1289,7 +1289,11 @@ if (sni) { if (!expand_check(sni, US"tls_sni", &tls_sni)) return FAIL; - if (!Ustrlen(tls_sni)) + if (tls_sni == NULL) + { + DEBUG(D_tls) debug_printf("Setting TLS SNI forced to fail, not sending\n"); + } + else if (!Ustrlen(tls_sni)) tls_sni = NULL; else { |