aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-10-30 21:36:26 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-10-30 21:36:26 +0000
commitbcc358c34513559116ad49673029eddcbf7a5bf0 (patch)
treeb5649b2c24550c69b47b709b2b7910ec297d4684 /fetchmail.c
parent4d6d492fa367899570abf5f9ceaca629697db13f (diff)
downloadfetchmail-bcc358c34513559116ad49673029eddcbf7a5bf0.tar.gz
fetchmail-bcc358c34513559116ad49673029eddcbf7a5bf0.tar.bz2
fetchmail-bcc358c34513559116ad49673029eddcbf7a5bf0.zip
Use new host_fqdn() interface.
svn path=/trunk/; revision=4382
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;\