From 1cf6c15ab43ce41fa99e3776d0c23ed4f66196a8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 25 May 2009 12:23:22 +0000 Subject: - bug report #2796358 (http://curl.haxx.se/bug/view.cgi?id=2796358) pointed out that the cookie parser would leak memory when it parses cookies that are received with domain, path etc set multiple times in the same header. While such a cookie is questionable, they occur in the wild and libcurl no longer leaks memory for them. I added such a header to test case 8. --- tests/data/test8 | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/data/test8') diff --git a/tests/data/test8 b/tests/data/test8 index 3af9c8155..959b8807e 100644 --- a/tests/data/test8 +++ b/tests/data/test8 @@ -38,6 +38,7 @@ Funny-head: yesyes Set-Cookie: foobar=name; domain=127.0.0.1; path=/; Set-Cookie: mismatch=this; domain=127.0.0.1; path="/silly/"; Set-Cookie: partmatch=present; domain=.0.0.1; path=/; +Set-Cookie: duplicate=test; domain=.0.0.1; domain=.0.0.1; path=/donkey; Set-Cookie: cookie=yes; path=/we; Set-Cookie: nocookie=yes; path=/WE; -- cgit v1.2.3