]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
*-login: mail_max_userip_connections=0 was broken by f8ab4f979e92
authorTimo Sirainen <tss@iki.fi>
Mon, 31 Aug 2015 19:45:17 +0000 (22:45 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 31 Aug 2015 19:45:17 +0000 (22:45 +0300)
src/login-common/sasl-server.c

index 5a67004c9712cb6af588317e80f8208f05f2e44f..cacc2c201b7ec88f7b20dbce35f09e45feaec452 100644 (file)
@@ -169,7 +169,9 @@ anvil_lookup_callback(const char *reply, void *context)
        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;