]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
We were posing as IMAP instead of POP3 to auth process.
authorTimo Sirainen <tss@iki.fi>
Wed, 20 Aug 2003 03:17:25 +0000 (06:17 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 20 Aug 2003 03:17:25 +0000 (06:17 +0300)
--HG--
branch : HEAD

src/pop3-login/client-authenticate.c

index 1e0882cfdeadd0cbf8c5960022c865546f7853ff..9690f8181339f19ae16211b3e874f8e1fcb5fe6d 100644 (file)
@@ -183,7 +183,7 @@ int cmd_pass(struct pop3_client *client, const char *args)
        buffer_append(client->plain_login, args, strlen(args));
 
        client_ref(client);
-       if (auth_init_request(AUTH_MECH_PLAIN, AUTH_PROTOCOL_IMAP,
+       if (auth_init_request(AUTH_MECH_PLAIN, AUTH_PROTOCOL_POP3,
                              login_callback, &client->common, &error)) {
                /* don't read any input from client until login is finished */
                if (client->common.io != NULL) {
@@ -287,7 +287,7 @@ int cmd_auth(struct pop3_client *client, const char *args)
        }
 
        client_ref(client);
-       if (auth_init_request(mech->mech, AUTH_PROTOCOL_IMAP,
+       if (auth_init_request(mech->mech, AUTH_PROTOCOL_POP3,
                              authenticate_callback, &client->common, &error)) {
                /* following input data will go to authentication */
                if (client->common.io != NULL)