Skip to content
cookie.c 28.9 KiB
Newer Older
    return NULL;
  c = data->cookies->cookies;
  beg = list;
  while (c) {
    /* fill the list with _all_ the cookies we know */
    line = get_netscape_format(c);
    if (line == NULL) {
      curl_slist_free_all(beg);
      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;
    }
    c = c->next;
  }
  return list;
#endif /* CURL_DISABLE_HTTP || CURL_DISABLE_COOKIES */