]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
login-proxy: Remove client->refcount > 1 assert
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 9 Apr 2020 20:12:03 +0000 (23:12 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Fri, 24 Apr 2020 08:02:40 +0000 (08:02 +0000)
There doesn't seem to be any point in having this assert. Nothing seems
to require that it's over 1.

src/login-common/client-common-auth.c

index 75deabda5c24214fc261b6f9223d8aeb970d0645..eb3b6749a6f722dc0ec91453283a2fc735613760 100644 (file)
@@ -420,8 +420,6 @@ static int proxy_start(struct client *client,
                sasl_mech = &dsasl_client_mech_plain;
        }
 
-       i_assert(client->refcount > 1);
-
        if (login_proxy_is_ourself(client, reply->host, reply->port,
                                   reply->destuser)) {
                e_error(client->event, "Proxying loops to itself");