aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-11-20 22:51:32 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-11-20 22:51:32 +0000
commit8cc068b15f9030a31cd4d974acc275a0c3771ccc (patch)
tree4205106cf4b6974acab65f778c462b056d785f11
parent13fd378134d9667a682c4e8d812ba800931c82b4 (diff)
downloadfetchmail-8cc068b15f9030a31cd4d974acc275a0c3771ccc.tar.gz
fetchmail-8cc068b15f9030a31cd4d974acc275a0c3771ccc.tar.bz2
fetchmail-8cc068b15f9030a31cd4d974acc275a0c3771ccc.zip
Fix the sanity check.
svn path=/trunk/; revision=2197
-rw-r--r--fetchmail.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 61aef1aa..0c504bd8 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -1070,16 +1070,15 @@ static int load_params(int argc, char **argv, int optind)
{
char *cp;
- if ((cp = strrchr(idp->id, '/')))
- {
+ if (!(cp = strrchr(idp->id, '/')) ||
#ifdef INET6
- if (strcmp(++cp, SMTP_PORT) == 0)
+ (strcmp(++cp, SMTP_PORT) == 0))
#else
- if (atoi(++cp) == SMTP_PORT)
+ (atoi(++cp) == SMTP_PORT))
#endif /* INET6 */
{
(void) fprintf(stderr,
- "%s configuration invalid, LMTP can't use SMTP port\n",
+ "%s configuration invalid, LMTP can't use default SMTP port\n",
ctl->server.pollname);
exit(PS_SYNTAX);
}