the new cookie functions that require 'data' passed in

This commit is contained in:
Daniel Stenberg
2003-08-11 09:56:06 +00:00
parent 2dd1518d63
commit 96e217b496
6 changed files with 17 additions and 10 deletions

View File

@@ -709,7 +709,8 @@ CURLcode Curl_readwrite(struct connectdata *conn,
checkprefix("Set-Cookie:", k->p)) {
Curl_share_lock(data, CURL_LOCK_DATA_COOKIE,
CURL_LOCK_ACCESS_SINGLE);
Curl_cookie_add(data->cookies, TRUE, k->p+11,
Curl_cookie_add(data,
data->cookies, TRUE, k->p+11,
/* If there is a custom-set Host: name, use it
here, or else use real peer host name. */
conn->allocptr.cookiehost?
@@ -1514,7 +1515,8 @@ CURLcode Curl_pretransfer(struct SessionHandle *data)
struct curl_slist *list = data->change.cookielist;
Curl_share_lock(data, CURL_LOCK_DATA_COOKIE, CURL_LOCK_ACCESS_SINGLE);
while(list) {
data->cookies = Curl_cookie_init(list->data,
data->cookies = Curl_cookie_init(data,
list->data,
data->cookies,
data->set.cookiesession);
list = list->next;