]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap-login: imap-login-client - Use sasl_server_find_available_mech() instead of...
authorStephan Bosch <stephan.bosch@open-xchange.com>
Fri, 9 Aug 2019 21:26:54 +0000 (23:26 +0200)
committerStephan Bosch <stephan.bosch@open-xchange.com>
Tue, 13 Aug 2019 22:46:26 +0000 (00:46 +0200)
src/imap-login/imap-login-client.c

index 0f17500509e6741629167e0dfc14fad8bbcabffc..a05584ba2e243eb5a7ff78b771260b5145a4ff5e 100644 (file)
@@ -76,7 +76,7 @@ bool client_handle_parser_error(struct imap_client *client,
 static bool is_login_cmd_disabled(struct client *client)
 {
        if (client->secured) {
-               if (auth_client_find_mech(auth_client, "PLAIN") == NULL) {
+               if (sasl_server_find_available_mech(client, "PLAIN") == NULL) {
                        /* no PLAIN authentication, can't use LOGIN command */
                        return TRUE;
                }