]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
*-login: Call client.auth_result() also when proxying
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 24 Feb 2016 17:13:28 +0000 (19:13 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 26 Feb 2016 11:36:12 +0000 (13:36 +0200)
src/login-common/client-common-auth.c

index 6baca4f9546f0695fbef9ad501af6335186059ae..f05f7a183928dae6597d3324e446c31af13e1e30 100644 (file)
@@ -397,6 +397,12 @@ client_auth_handle_reply(struct client *client,
                        return FALSE;
                if (proxy_start(client, reply) < 0)
                        client_auth_failed(client);
+               else {
+                       /* this for plugins being able th hook into auth reply
+                          when proxying is used */
+                       client_auth_result(client, CLIENT_AUTH_RESULT_SUCCESS,
+                                          reply, NULL);
+               }
                return TRUE;
        }