about summary refs log tree commit diff stats
path: root/src/LYCookie.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYCookie.c')
-rw-r--r--src/LYCookie.c7
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;
 	}
 
 	/*
n' href='/danisanti/profani-tty/blame/prof_autocomplete.h?id=375d9336ef43285afaa33b42eb4750248301c39f'>^
b02b52d8 ^

89d3b9fc ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44