diff options
Diffstat (limited to 'src/LYCookie.c')
-rw-r--r-- | src/LYCookie.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/LYCookie.c b/src/LYCookie.c index be801ab5..57434850 100644 --- a/src/LYCookie.c +++ b/src/LYCookie.c @@ -1,5 +1,5 @@ /* - * $LynxId: LYCookie.c,v 1.129 2014/11/29 15:28:10 Mike.Gorse Exp $ + * $LynxId: LYCookie.c,v 1.131 2015/09/30 22:05:41 tom Exp $ * * Lynx Cookie Support LYCookie.c * =================== @@ -753,10 +753,13 @@ static char *scan_cookie_sublist(char *hostname, */ if ((co->flags & COOKIE_FLAG_EXPIRES_SET) && co->expires <= now) { + next = hl->next; HTList_removeObject(sublist, co); freeCookie(co); total_cookies--; - continue; + if (next) + continue; + break; } /* |