make sure the LASTSOCKET check only checks for SSL status if the socket
truly use SSL
This commit is contained in:
parent
d9e14408f0
commit
5d5f5e3be8
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user