Skip to content

Commit

Permalink
- Michael Wallner fixed a NULL pointer deref when calling
Browse files Browse the repository at this point in the history
  curl_easy_setup(curl, CURLOPT_COOKIELIST, "SESS") on a CURL handle with no
  cookies data.
  • Loading branch information
bagder committed Jan 13, 2009
1 parent 0761e60 commit a19e02b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGES
Expand Up @@ -8,6 +8,10 @@


Daniel Stenberg (13 Jan 2009)
- Michael Wallner fixed a NULL pointer deref when calling
curl_easy_setup(curl, CURLOPT_COOKIELIST, "SESS") on a CURL handle with no
cookies data.

- Stefan Teleman brought a patch to fix the default curlbuild.h file for the
SunPro compilers.

Expand Down
3 changes: 2 additions & 1 deletion RELEASE-NOTES
Expand Up @@ -46,6 +46,7 @@ This release includes the following bugfixes:
o rare Location: follow bug with the multi interface
o the configure script can now detect gnutls with pkg-config
o curlbuild.h was adjusted for SunPro compilers
o CURLOPT_COOKIELIST set to "SESS" on an easy handle with no cookies data

This release includes the following known bugs:

Expand All @@ -58,6 +59,6 @@ advice from friends like these:
Markus Koetter, Josef Wolf, Vlad Grachov, Pawel Kierski, Igor Novoseltsev,
Fred Machado, Ken Hirsch, Keshav Krity, Patrick Monnerat, Mark Karpeles,
Anthony Bryan, Peter Korsgaard, Phil Lisiecki, Bas Mevissen, Rob Crittenden,
Emil Romanus, Karl Moerder, Daniel Black, Stefan Teleman
Emil Romanus, Karl Moerder, Daniel Black, Stefan Teleman, Michael Wallner

Thanks! (and sorry if I forgot to mention someone)
9 changes: 6 additions & 3 deletions TODO-RELEASE
@@ -1,8 +1,6 @@
To be addressed in 7.19.3 (planned release: January 2009)
=========================

209 - [PATCH] Curl_cookie_clearsess segfaults on new handle

210 - [PATCH] TFTP: Fix Connect and Transfer Timeout Behavior

211 - Building and using static libcurl on Windows with VS2008
Expand All @@ -21,4 +19,9 @@ To be addressed in 7.19.4 (planned release: March 2009)

208 - Patch to allow GSSAPI authentication to a socks5 server

214 -
214 - progress bar prefix, second try (for the curl tool)

215 - Patch for Metalink Support (for the curl tool)

216 -

4 changes: 2 additions & 2 deletions lib/cookie.c
Expand Up @@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
* Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
Expand Down Expand Up @@ -878,7 +878,7 @@ void Curl_cookie_clearsess(struct CookieInfo *cookies)
{
struct Cookie *first, *curr, *next, *prev = NULL;

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

first = curr = prev = cookies->cookies;
Expand Down

0 comments on commit a19e02b

Please sign in to comment.