diff options
author | corvid <corvid@lavabit.com> | 2010-03-22 00:18:09 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2010-03-22 00:18:09 +0000 |
commit | 5c3b31ecc8f55509e9785ea1eeb5eea096762e63 (patch) | |
tree | bc9ad3339d753cb93cb986ba1e3f32a4a2d55355 /dpi/cookies.c | |
parent | bff17cca552f6e3ec9d34f8d8d3c43e3d66bd3d2 (diff) |
cookies some remove_fast
Diffstat (limited to 'dpi/cookies.c')
-rw-r--r-- | dpi/cookies.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dpi/cookies.c b/dpi/cookies.c index 23d2b2c6..50f9a4a2 100644 --- a/dpi/cookies.c +++ b/dpi/cookies.c @@ -597,7 +597,7 @@ static void Cookies_add_cookie(CookieData_t *cookie) if (domain_cookies) { /* Remove any cookies with the same name and path */ while ((c = dList_find_custom(domain_cookies, cookie, Cookies_cmp))) { - dList_remove(domain_cookies, c); + dList_remove_fast(domain_cookies, c); Cookies_free_cookie(c); } } @@ -1136,7 +1136,7 @@ static void Cookies_add_matching_cookies(const char *domain, if (difftime(cookie->expires_at, time(NULL)) < 0) { _MSG("Goodbye, expired cookie %s=%s d:%s p:%s\n", cookie->name, cookie->value, cookie->domain, cookie->path); - dList_remove(domain_cookies, cookie); + dList_remove_fast(domain_cookies, cookie); Cookies_free_cookie(cookie); --i; continue; } |