diff options
Diffstat (limited to 'lib/transfer.c')
-rw-r--r-- | lib/transfer.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index b4ea0b23f..ab0af9f42 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -92,6 +92,7 @@ #include "http.h" #include "url.h" #include "getinfo.h" +#include "ssluse.h" #define _MPRINTF_REPLACE /* use our functions only */ #include <curl/mprintf.h> @@ -896,6 +897,13 @@ CURLcode Curl_perform(struct UrlData *data) /* we can't do anything wihout URL */ return CURLE_URL_MALFORMAT; +#ifdef USE_SSLEAY + /* Init the SSL session ID cache here. We do it here since we want to + do it after the *_setopt() calls (that could change the size) but + before any transfer. */ + Curl_SSL_InitSessions(data, data->ssl.numsessions); +#endif + data->followlocation=0; /* reset the location-follow counter */ data->bits.this_is_a_follow = FALSE; /* reset this */ |