aboutsummaryrefslogtreecommitdiffstats
path: root/starttls.c
diff options
context:
space:
mode:
Diffstat (limited to 'starttls.c')
-rw-r--r--starttls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/starttls.c b/starttls.c
index 2df08cd9..b35f2970 100644
--- a/starttls.c
+++ b/starttls.c
@@ -29,7 +29,7 @@ int must_starttls(struct query *ctl) {
#ifdef SSL_ENABLE
return maybe_starttls(ctl)
&& (ctl->sslfingerprint || ctl->sslcertck
- || (ctl->sslproto && !strcasecmp(ctl->sslproto, "tls1")));
+ || (ctl->sslproto && ctl->sslproto[0]));
#else
(void)ctl;
return 0;