diff options
author | Daniel Stenberg <daniel@haxx.se> | 2009-01-13 22:21:14 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2009-01-13 22:21:14 +0000 |
commit | a19e02be5e3fc41aee1ecee73a26d363e186e36e (patch) | |
tree | 73e3762c266032e706aba77f340bcd2d0e7d33e4 /lib/cookie.c | |
parent | 0761e60a4a4b41b00720675a0024d9008330b806 (diff) | |
download | curl-a19e02be5e3fc41aee1ecee73a26d363e186e36e.tar.gz |
- Michael Wallner fixed a NULL pointer deref when calling
curl_easy_setup(curl, CURLOPT_COOKIELIST, "SESS") on a CURL handle with no
cookies data.
Diffstat (limited to 'lib/cookie.c')
-rw-r--r-- | lib/cookie.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cookie.c b/lib/cookie.c index 4db1a5621..4f768f2db 100644 --- a/lib/cookie.c +++ b/lib/cookie.c @@ -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 @@ -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; |