From 8cc068b15f9030a31cd4d974acc275a0c3771ccc Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 20 Nov 1998 22:51:32 +0000 Subject: Fix the sanity check. svn path=/trunk/; revision=2197 --- fetchmail.c | 9 ++++----- 1 file 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); } -- cgit v1.2.3