From 30abdc40501b9675ead72fa59ae138fc4336de47 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 24 Mar 1998 04:39:59 +0000 Subject: Prevernt formation of pathological lists. svn path=/trunk/; revision=1722 --- fetchmail.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index 43799cc1..a9bf2348 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -694,6 +694,12 @@ static int load_params(int argc, char **argv, int optind) ctl = hostalloc(&cmd_opts); ctl->server.pollname = xstrdup(argv[optind]); + /* avoid making pathological circular lists */ + ctl->server.localdomains = (struct idlist *)NULL; + ctl->localnames = (struct idlist *)NULL; + ctl->mailboxes = (struct idlist *)NULL; + ctl->smtphunt = (struct idlist *)NULL; + foundit: ctl->active = TRUE; } -- cgit v1.2.3