summaryrefslogtreecommitdiff
path: root/lib/share.c
diff options
context:
space:
mode:
authorAlejandro Alvarez Ayllon <alejandro.alvarez.ayllon@cern.ch>2011-11-17 23:34:38 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-11-17 23:34:38 +0100
commit35f61c404d434e00da0f502a073cd3a0201fa504 (patch)
tree0255059c872d5ed3250c86d2d1b2a532fc63a757 /lib/share.c
parent97b73fec7a961d34a378c41b49542fc2cf5782c9 (diff)
downloadcurl-35f61c404d434e00da0f502a073cd3a0201fa504.tar.gz
SSL session share: move the age counter to the share object
Previously the age counter would be counted individually in each easy handle that shared SSL sessions!
Diffstat (limited to 'lib/share.c')
-rw-r--r--lib/share.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/share.c b/lib/share.c
index 71c2ef308..a89e15e3d 100644
--- a/lib/share.c
+++ b/lib/share.c
@@ -91,6 +91,7 @@ curl_share_setopt(CURLSH *sh, CURLSHoption option, ...)
share->nsslsession = 8;
share->sslsession = calloc(share->nsslsession,
sizeof(struct curl_ssl_session));
+ share->sessionage = 0;
if(!share->sslsession)
return CURLSHE_NOMEM;
}