dovecot-2.1: login: Send the last connected client's IP address ...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Dec 8 05:55:33 EET 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/d9ad41825a34
changeset: 13819:d9ad41825a34
user: Timo Sirainen <tss at iki.fi>
date: Thu Dec 08 05:55:19 2011 +0200
description:
login: Send the last connected client's IP address to log process.
diffstat:
src/login-common/main.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r 45bc88eba07a -r d9ad41825a34 src/login-common/main.c
--- a/src/login-common/main.c Thu Dec 08 05:54:54 2011 +0200
+++ b/src/login-common/main.c Thu Dec 08 05:55:19 2011 +0200
@@ -218,6 +218,12 @@
struct login_access_lookup *lookup;
master_service_client_connection_accept(conn);
+ if (conn->remote_ip.family != 0) {
+ /* log the connection's IP address in case we crash. it's of
+ course possible that another earlier client causes the
+ crash, but this is better than nothing. */
+ i_set_failure_send_ip(&conn->remote_ip);
+ }
/* make sure we're connected (or attempting to connect) to auth */
auth_client_connect(auth_client);
More information about the dovecot-cvs
mailing list