changeset 1627:0ae558e56003

cookies some remove_fast
author corvid <corvid@lavabit.com>
date Mon, 22 Mar 2010 00:18:09 +0000
parents fcf42389aa4d
children ce89b1819729
files dpi/cookies.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dpi/cookies.c	Mon Mar 22 00:14:09 2010 +0000
+++ b/dpi/cookies.c	Mon Mar 22 00:18:09 2010 +0000
@@ -597,7 +597,7 @@
    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 @@
          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;
          }