aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 93c5cd8b..6104d1c8 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -1076,10 +1076,13 @@ static int load_params(int argc, char **argv, int optind)
|| ctl->server.authenticate == A_KERBEROS_V4
|| ctl->server.authenticate == A_KERBEROS_V5))
{
- fetchmailhost = host_fqdn();
+ fetchmailhost = host_fqdn(1);
break;
}
+ if (!ctl) /* list exhausted */
+ fetchmailhost = host_fqdn(0);
+
/* this code enables flags to be turned off */
#define DEFAULT(flag, dflt) if (flag == FLAG_TRUE)\
flag = TRUE;\