dovecot-1.2: checkpassword: Set TCPLOCALPORT and TCPREMOTEPORT e...

dovecot at dovecot.org dovecot at dovecot.org
Thu Jul 24 02:22:05 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/2fc09774bc02
changeset: 8057:2fc09774bc02
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jul 24 02:21:51 2008 +0300
description:
checkpassword: Set TCPLOCALPORT and TCPREMOTEPORT environments.

diffstat:

1 file changed, 8 insertions(+)
src/auth/passdb-checkpassword.c |    8 ++++++++

diffs (18 lines):

diff -r f30268333748 -r 2fc09774bc02 src/auth/passdb-checkpassword.c
--- a/src/auth/passdb-checkpassword.c	Thu Jul 24 02:13:11 2008 +0300
+++ b/src/auth/passdb-checkpassword.c	Thu Jul 24 02:21:51 2008 +0300
@@ -246,6 +246,14 @@ checkpassword_verify_plain_child(struct 
 					    net_ip2addr(&request->remote_ip),
 					    NULL));
 		}
+		if (request->local_port != 0) {
+			env_put(t_strdup_printf("TCPLOCALPORT=%u",
+						request->local_port));
+		}
+		if (request->remote_port != 0) {
+			env_put(t_strdup_printf("TCPREMOTEPORT=%u",
+						request->remote_port));
+		}
 		if (request->master_user != NULL) {
 			env_put(t_strconcat("MASTER_USER=",
 					    request->master_user, NULL));


More information about the dovecot-cvs mailing list