aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c6
1 files changed, 6 insertions, 0 deletions
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;
}