summaryrefslogtreecommitdiff
path: root/lib/pop3.c
diff options
context:
space:
mode:
authorStefan Eissing <stefan@eissing.org>2022-12-07 14:58:46 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-12-08 14:27:06 +0100
commitb42156b825dde6cd5eb1e2547530bb6de50d67e9 (patch)
tree6c3ce7806eb781a9f4751f53a400bf0ec371b7e4 /lib/pop3.c
parent42bcca4af08117f8f60a084f566d541bce8ea1b0 (diff)
downloadcurl-b42156b825dde6cd5eb1e2547530bb6de50d67e9.tar.gz
cfilter: improve SSL connection checks
- fixes `Curl_ssl_cf_get_ssl()` to detect also the first filter instance as ssl (refs #10053) - replaces `Curl_ssl_use()` with the correct `Curl_conn_is_ssl()` Closes #10054 Fixes #10053 Reported-by: Patrick Monnerat
Diffstat (limited to 'lib/pop3.c')
-rw-r--r--lib/pop3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pop3.c b/lib/pop3.c
index c5ad07aa0..ce17f2ac7 100644
--- a/lib/pop3.c
+++ b/lib/pop3.c
@@ -769,7 +769,7 @@ static CURLcode pop3_state_capa_resp(struct Curl_easy *data, int pop3code,
if(pop3code != '+')
pop3c->authtypes |= POP3_TYPE_CLEARTEXT;
- if(!data->set.use_ssl || Curl_ssl_use(conn, FIRSTSOCKET))
+ if(!data->set.use_ssl || Curl_conn_is_ssl(data, FIRSTSOCKET))
result = pop3_perform_authentication(data, conn);
else if(pop3code == '+' && pop3c->tls_supported)
/* Switch to TLS connection now */