From ca48591eeaadd3691a56aeb7562ad1d1ace215c7 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 10 Jan 1997 13:01:32 +0000 Subject: Don't infinite-loop in defaults. svn path=/trunk/; revision=732 --- NEWS | 2 ++ fetchmail.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index aedaba75..9e6ebc6b 100644 --- a/NEWS +++ b/NEWS @@ -13,6 +13,8 @@ bugs -- * Add ssh recipe correction. +* Eliminate infinite-loop bug in defaults handling. + There are 180 people on the fetchmail-friends list. ------------------------------------------------------------------------------ diff --git a/fetchmail.c b/fetchmail.c index 21ba5841..0fa6e593 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -559,7 +559,7 @@ static int load_params(int argc, char **argv, int optind) /* if there's a defaults record, merge it and lose it */ if (querylist && strcmp(querylist->servernames->id, "defaults") == 0) { - for (ctl = querylist; ctl; ctl = ctl->next) + for (ctl = querylist->next; ctl; ctl = ctl->next) optmerge(ctl, querylist); querylist = querylist->next; } -- cgit v1.2.3