From 763db6c239904dcec27afd088e15640e99fa84cf Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 1 Dec 1997 05:51:30 +0000 Subject: Sent to Gunther Leber. svn path=/trunk/; revision=1549 --- fetchmail.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index d737e07e..493cb247 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -584,7 +584,6 @@ static int load_params(int argc, char **argv, int optind) def_opts.server.protocol = P_AUTO; def_opts.server.timeout = CLIENT_TIMEOUT; def_opts.remotename = user; - save_str(&def_opts.smtphunt, FALSE, fetchmailhost); def_opts.expunge = 1; def_opts.server.envskip = 0; @@ -638,6 +637,10 @@ static int load_params(int argc, char **argv, int optind) /* merge in defaults */ optmerge(ctl, &def_opts); + /* make sure we have a nonempty host list to forward to */ + if (!ctl->smtphunt) + save_str(&ctl->smtphunt, FALSE, fetchmailhost); + /* keep lusers from shooting themselves in the foot :-) */ if (poll_interval && ctl->limit) { -- cgit v1.2.3