dovecot-2.2: *-login: mail_max_userip_connections=0 was broken b...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Aug 31 20:12:16 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/8f96bbd1691f
changeset: 19049:8f96bbd1691f
user: Timo Sirainen <tss at iki.fi>
date: Mon Aug 31 22:45:17 2015 +0300
description:
*-login: mail_max_userip_connections=0 was broken by f8ab4f979e92
diffstat:
src/login-common/sasl-server.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r 7648b127ca37 -r 8f96bbd1691f src/login-common/sasl-server.c
--- a/src/login-common/sasl-server.c Mon Aug 31 22:25:57 2015 +0300
+++ b/src/login-common/sasl-server.c Mon Aug 31 22:45:17 2015 +0300
@@ -169,7 +169,9 @@
if (reply != NULL && str_to_uint(reply, &conn_count) < 0)
i_fatal("Received invalid reply from anvil: %s", reply);
- if (conn_count < set->mail_max_userip_connections)
+ /* reply=NULL if we didn't need to do anvil lookup,
+ or if the anvil lookup failed. allow failed anvil lookups in. */
+ if (reply == NULL || conn_count < set->mail_max_userip_connections)
master_send_request(req);
else {
client->authenticating = FALSE;
More information about the dovecot-cvs
mailing list