* libsoup/soup-cookie-jar.c (soup_cookie_jar_set_cookie):
Check that the cookie was parsed successfully before setting it
svn path=/trunk/; revision=1136
+2008-04-14 Chris Lord <chrislord.net@gmail.com>
+
+ reviewed by: Dan Winship <danw@gnome.org>
+
+ * libsoup/soup-cookie-jar.c (soup_cookie_jar_set_cookie):
+ Check that the cookie was parsed successfully before setting it
+
2008-04-08 Dan Winship <danw@gnome.org>
Initial HTTP cookie support imported from development git repo,
g_return_if_fail (cookie != NULL);
soup_cookie = soup_cookie_parse (cookie, uri);
- set_cookie (jar, soup_cookie);
- /* set_cookie will steal or free soup_cookie */
+ if (soup_cookie) {
+ set_cookie (jar, soup_cookie);
+ /* set_cookie will steal or free soup_cookie */
+ }
}
static void