Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > media > main-src > by-pkgid > 413d246668f2b2520982ab8f6ca0c256 > files > 3

fetchmail-6.3.6-1.1.el5_3.1.src.rpm

--- fetchmail-6.3.6/pop3.c_old	2007-06-06 18:23:16.000000000 +0200
+++ fetchmail-6.3.6/pop3.c	2007-06-06 18:24:13.000000000 +0200
@@ -612,7 +612,11 @@
 
 	/* 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 {