Skip to content
Snippets Groups Projects
Commit 5d5f5e3b authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

make sure the LASTSOCKET check only checks for SSL status if the socket

truly use SSL
parent d9e14408
No related branches found
No related tags found
No related merge requests found
......@@ -204,7 +204,7 @@ CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info, ...)
sock[FIRSTSOCKET];
/* we have a socket connected, let's determine if the server shut down */
/* determine if ssl */
if(data->state.connects[data->state.lastconnect]->protocol & PROT_SSL) {
if(data->state.connects[data->state.lastconnect]->ssl[FIRSTSOCKET].use) {
/* use the SSL context */
if (!Curl_ssl_check_cxn(data->state.connects[data->state.lastconnect]))
*param_longp = -1; /* FIN received */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment