make sure the LASTSOCKET check only checks for SSL status if the socket
authorDaniel Stenberg <daniel@haxx.se>
Thu, 11 May 2006 05:17:40 +0000 (05:17 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 11 May 2006 05:17:40 +0000 (05:17 +0000)
truly use SSL

lib/getinfo.c

index d74fbcf..f884ad1 100644 (file)
@@ -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 */