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, 4 insertions, 3 deletions
diff --git a/src/LYCookie.c b/src/LYCookie.c
index 04ee12fd..be801ab5 100644
--- a/src/LYCookie.c
+++ b/src/LYCookie.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYCookie.c,v 1.128 2013/11/28 11:18:12 tom Exp $
+ * $LynxId: LYCookie.c,v 1.129 2014/11/29 15:28:10 Mike.Gorse Exp $
  *
  *			       Lynx Cookie Support		   LYCookie.c
  *			       ===================
@@ -716,13 +716,14 @@ static char *scan_cookie_sublist(char *hostname,
 				 char *header,
 				 int secure)
 {
-    HTList *hl;
+    HTList *hl, *next;
     cookie *co;
     time_t now = time(NULL);
     char crlftab[8];
 
     sprintf(crlftab, "%c%c%c", CR, LF, '\t');
-    for (hl = sublist; hl != NULL; hl = hl->next) {
+    for (hl = sublist; hl != NULL; hl = next) {
+	next = hl->next;
 	co = (cookie *) hl->object;
 
 	if (co == NULL) {