dovecot-2.2: imap: Fixed hibernation to work with non-TCP connec...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Aug 25 15:28:37 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/c3bea195a020
changeset: 19007:c3bea195a020
user: Timo Sirainen <tss at iki.fi>
date: Tue Aug 25 18:27:44 2015 +0300
description:
imap: Fixed hibernation to work with non-TCP connections.
Mainly meaning UNIX socket connections from login processes, which are
proxying TLS connections.
diffstat:
src/imap/imap-client-hibernate.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 5ec09852704a -r c3bea195a020 src/imap/imap-client-hibernate.c
--- a/src/imap/imap-client-hibernate.c Tue Aug 25 17:03:19 2015 +0300
+++ b/src/imap/imap-client-hibernate.c Tue Aug 25 18:27:44 2015 +0300
@@ -49,7 +49,8 @@
str_append_tabescaped(cmd, client->user->set->mail_log_prefix);
str_printfa(cmd, "\tidle_notify_interval=%u",
client->set->imap_idle_notify_interval);
- if (net_getpeername(client->fd_in, &peer_ip, &peer_port) == 0) {
+ if (net_getpeername(client->fd_in, &peer_ip, &peer_port) == 0 &&
+ peer_port != 0) {
str_printfa(cmd, "\tpeer_ip=%s\tpeer_port=%u",
net_ip2addr(&peer_ip), peer_port);
}
More information about the dovecot-cvs
mailing list