From b2401f7a5900562a1e4e22c0789009a1e73fefc6 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 23 Jul 2005 18:24:11 +0000 Subject: Remove a check that is always true. Found by Nico Golde. svn path=/trunk/; revision=4174 --- fetchmail.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index d9ef9927..abc717e0 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -1062,16 +1062,15 @@ static int load_params(int argc, char **argv, int optind) * If we're using Kerberos for authentication, we need * the FQDN in order to generate capability keys. */ - if (strcmp(fetchmailhost, "localhost") == 0) - for (ctl = querylist; ctl; ctl = ctl->next) - if (ctl->active && + for (ctl = querylist; ctl; ctl = ctl->next) + if (ctl->active && (ctl->server.protocol==P_ETRN || ctl->server.protocol==P_ODMR || ctl->server.authenticate == A_KERBEROS_V4 || ctl->server.authenticate == A_KERBEROS_V5)) - { - fetchmailhost = host_fqdn(); - break; - } + { + fetchmailhost = host_fqdn(); + break; + } /* this code enables flags to be turned off */ #define DEFAULT(flag, dflt) if (flag == FLAG_TRUE)\ -- cgit v1.2.3