cURL / Mailing Lists / curl-library / Single Mail

curl-library

Segmentation fault/bug in cookie.c

From: Pablo Pissanetzky <pablo_at_trickplay.com>
Date: Thu, 21 Jan 2010 13:22:31 -0800

In cookie.c, line 912, version 7.19.7

It reads:

  if(!cookies->cookies || !cookies->cookies)
    return;

It should read:

  if(!cookies || !cookies->cookies)
    return;

I can be demonstrated by a segmentation fault if you do this:

CURL * eh=curl_easy_init();
curl_easy_setopt(eh,CURLOPT_COOKIELIST,"SESS");

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-01-21