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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */