aboutsummaryrefslogtreecommitdiff
path: root/lib/gtls.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-02-20 09:56:26 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-02-20 09:56:26 +0000
commit53a549000c3634f6b0a5ed262d5834c3145885d7 (patch)
tree53ed658f9b454a41bf4f1a4c62573f2f0db8e667 /lib/gtls.c
parent55700cb01f4a01b8187f387e1655371e6fe0703a (diff)
- Based on initial work done by Gautam Kachroo to address a bug, we now keep
better control at the exact state of the connection's SSL status so that we know exactly when it has completed the SSL negotiation or not so that there won't be accidental re-uses of connections that are wrongly believed to be in SSL-completed-negotiate state.
Diffstat (limited to 'lib/gtls.c')
-rw-r--r--lib/gtls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gtls.c b/lib/gtls.c
index 2364c2778..3bf988194 100644
--- a/lib/gtls.c
+++ b/lib/gtls.c
@@ -501,6 +501,8 @@ Curl_gtls_connect(struct connectdata *conn,
ptr = gnutls_mac_get_name(gnutls_mac_get(session));
infof(data, "\t MAC: %s\n", ptr);
+ connssl->state = ssl_connection_complete;
+
if(!ssl_sessionid) {
/* this session was not previously in the cache, add it now */