diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-11-20 22:51:32 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-11-20 22:51:32 +0000 |
commit | 8cc068b15f9030a31cd4d974acc275a0c3771ccc (patch) | |
tree | 4205106cf4b6974acab65f778c462b056d785f11 | |
parent | 13fd378134d9667a682c4e8d812ba800931c82b4 (diff) | |
download | fetchmail-8cc068b15f9030a31cd4d974acc275a0c3771ccc.tar.gz fetchmail-8cc068b15f9030a31cd4d974acc275a0c3771ccc.tar.bz2 fetchmail-8cc068b15f9030a31cd4d974acc275a0c3771ccc.zip |
Fix the sanity check.
svn path=/trunk/; revision=2197
-rw-r--r-- | fetchmail.c | 9 |
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); } |