diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-03-26 21:25:51 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-03-26 21:25:51 +0000 |
commit | a0893a20e50af2deb56e6cfee0b455e310a5805a (patch) | |
tree | 5870c8ae4543913dc9cd5a461ec6433017f65140 /fetchmail.c | |
parent | f27916a7f27f00e1d2325538e55923c505706527 (diff) | |
download | fetchmail-a0893a20e50af2deb56e6cfee0b455e310a5805a.tar.gz fetchmail-a0893a20e50af2deb56e6cfee0b455e310a5805a.tar.bz2 fetchmail-a0893a20e50af2deb56e6cfee0b455e310a5805a.zip |
Prevent pathological circular lists.
svn path=/trunk/; revision=1730
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/fetchmail.c b/fetchmail.c index a9bf2348..b968d21c 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -691,14 +691,13 @@ static int load_params(int argc, char **argv, int optind) || str_in_list(&ctl->server.akalist, argv[optind])) goto foundit; - ctl = hostalloc(&cmd_opts); - ctl->server.pollname = xstrdup(argv[optind]); + /* + * Allocate and link record without copying in command-line args; + * we'll do that with the optmerge call later on. + */ + ctl = hostalloc((struct query *)NULL); - /* 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; + ctl->server.pollname = xstrdup(argv[optind]); foundit: ctl->active = TRUE; |