diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2006-03-13 20:17:09 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2006-03-13 20:17:09 +0000 |
commit | b7e145bdf22387e6cba4b54099407102ff310967 (patch) | |
tree | 35048adce1be4d77e5372fb772abf27450ea7115 | |
parent | 176f6180f1b18a039c933bef9226040996155aab (diff) | |
download | fetchmail-b7e145bdf22387e6cba4b54099407102ff310967.tar.gz fetchmail-b7e145bdf22387e6cba4b54099407102ff310967.tar.bz2 fetchmail-b7e145bdf22387e6cba4b54099407102ff310967.zip |
add Mirek's fetchmail-lmtp.patch to fix an operator precedence bug '||' vs ','
svn path=/branches/BRANCH_6-3/; revision=4731
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | fetchmail.c | 6 |
2 files changed, 4 insertions, 3 deletions
@@ -49,6 +49,7 @@ fetchmail 6.3.3 (not yet released): and Brendan Lynch, fix by Sunil Shetye (his patch was merged) and Brendan Lynch. * ./configure --quiet is now quieter (no SSL and fallback-related output). +* fix bug in LMTP port validation (patch by Miloslav Trmac). # CHANGES: * --idle can now be specified on the command line, too. diff --git a/fetchmail.c b/fetchmail.c index f150e8da..868a45c1 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -1254,9 +1254,9 @@ static int load_params(int argc, char **argv, int optind) { char *cp; - if (!(cp = strrchr((char *)idp->id, '/')) || - ++cp, (0 == strcmp(cp, SMTP_PORT)) - || servport(cp) == SMTP_PORT_NUM) + if (!(cp = strrchr((char *)idp->id, '/')) + || (0 == strcmp(cp + 1, SMTP_PORT)) + || servport(cp + 1) == SMTP_PORT_NUM) { (void) fprintf(stderr, GT_("%s configuration invalid, LMTP can't use default SMTP port\n"), |