aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--driver.c10
2 files changed, 8 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index f2956072..459030ab 100644
--- a/NEWS
+++ b/NEWS
@@ -26,6 +26,7 @@ fetchmail-4.3.8 ():
* Fix IMAP4rev1 detection.
* Added /-suffix capability to specify a port or service on smtphost args.
* More fixes by Nicholas Pitre.
+* Fix for core-dump bug in the new UID-marking code by timw@aracnet.com.
There are 274 people on fetchmail-friends and 138 on fetchmail-announce.
diff --git a/driver.c b/driver.c
index 4acb2aeb..8c0657c2 100644
--- a/driver.c
+++ b/driver.c
@@ -2099,9 +2099,13 @@ const struct method *proto; /* protocol method table */
/* tell the UID code we've seen this */
if (ctl->newsaved)
- for (idp = ctl->newsaved; idp; idp = idp->next)
- if (idp->val.num == num)
- MARK_SEEN(idp->val.num);
+ {
+ struct idlist *sdp;
+
+ for (sdp = ctl->newsaved; sdp; sdp = sdp->next)
+ if (sdp->val.num == num)
+ MARK_SEEN(sdp->val.num);
+ }
/* maybe we delete this message now? */
if (retained)