Newer
Older
Daniel Stenberg
committed
Daniel Stenberg
committed
beg = list;
while (c) {
/* fill the list with _all_ the cookies we know */
line = get_netscape_format(c);
if (line == NULL) {
return NULL;
}
list = curl_slist_append(list, line);
free(line);
if (list == NULL) {
curl_slist_free_all(beg);
return NULL;
}
else if (beg == NULL) {
beg = list;
}
Daniel Stenberg
committed
Daniel Stenberg
committed
}
#endif /* CURL_DISABLE_HTTP || CURL_DISABLE_COOKIES */