aboutsummaryrefslogtreecommitdiff
path: root/lib/getinfo.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-05-11 05:17:40 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-05-11 05:17:40 +0000
commit5d5f5e3be82fe22fb9bd3ccdcd5a959d0574020a (patch)
tree666f4c2ec6cdac2dc5b1149016e1dd3c45fc7eb5 /lib/getinfo.c
parentd9e14408f0e113a6056d4bde95cda6d0daee60f5 (diff)
make sure the LASTSOCKET check only checks for SSL status if the socket
truly use SSL
Diffstat (limited to 'lib/getinfo.c')
-rw-r--r--lib/getinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c
index d74fbcf3c..f884ad1e5 100644
--- a/lib/getinfo.c
+++ b/lib/getinfo.c
@@ -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 */