aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2007-02-02 23:34:11 +0000
committerMatthias Andree <matthias.andree@gmx.de>2007-02-02 23:34:11 +0000
commit1d1c07809f7d00e32e8abd14ce2bb1f5f38e122c (patch)
treef718167979a797ee1e3517d90020b70ab607237b /pop3.c
parent46f5873acf10044c9b4d465eb0ea58ddb48bf049 (diff)
downloadfetchmail-1d1c07809f7d00e32e8abd14ce2bb1f5f38e122c.tar.gz
fetchmail-1d1c07809f7d00e32e8abd14ce2bb1f5f38e122c.tar.bz2
fetchmail-1d1c07809f7d00e32e8abd14ce2bb1f5f38e122c.zip
Add Miloslav Trmac's patch to fix KPOP regression in 6.3.6.
svn path=/branches/BRANCH_6-3/; revision=5020
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/pop3.c b/pop3.c
index 3acc5923..f979e838 100644
--- a/pop3.c
+++ b/pop3.c
@@ -612,7 +612,11 @@ static int pop3_getauth(int sock, struct query *ctl, char *greeting)
/* check if we are actually allowed to send the password */
if (ctl->server.authenticate == A_ANY
- || ctl->server.authenticate == A_PASSWORD) {
+ || ctl->server.authenticate == A_PASSWORD
+ || ((ctl->server.authenticate == A_KERBEROS_V4
+ || ctl->server.authenticate == A_KERBEROS_V5)
+ && ctl->server.service
+ && strcmp(ctl->server.service, KPOP_PORT) == 0)) {
strlcpy(shroud, ctl->password, sizeof(shroud));
ok = gen_transact(sock, "PASS %s", ctl->password);
} else {