]> Pileus Git - ~andy/fetchmail/commitdiff
Remove some unneeded SASL cancellations.
authorMatthias Andree <matthias.andree@gmx.de>
Sat, 25 Sep 2010 15:32:26 +0000 (17:32 +0200)
committerMatthias Andree <matthias.andree@gmx.de>
Sat, 25 Sep 2010 15:37:23 +0000 (17:37 +0200)
imap.c

diff --git a/imap.c b/imap.c
index 4738361d0188862d128f74b972a61c456dd21f2b..d641586640426f5a6dfa9d811a6169ddfc006edc 100644 (file)
--- a/imap.c
+++ b/imap.c
@@ -573,7 +573,6 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting)
        if ((ok = do_gssauth(sock, "AUTHENTICATE", "imap",
                        ctl->server.truename, ctl->remotename)))
        {
-           /* SASL cancellation of authentication */
            if (ctl->server.authenticate != A_ANY)
                 return ok;
        } else  {
@@ -610,8 +609,6 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting)
     {
        if ((ok = do_cram_md5 (sock, "AUTHENTICATE", ctl, NULL)))
        {
-           /* SASL cancellation of authentication */
-           gen_send(sock, "*");
            if(ctl->server.authenticate != A_ANY)
                 return ok;
        }
@@ -647,8 +644,6 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting)
        && strstr (capabilities, "AUTH=NTLM")) {
        if ((ok = do_imap_ntlm(sock, ctl)))
        {
-           /* SASL cancellation of authentication */
-           gen_send(sock, "*");
            if(ctl->server.authenticate != A_ANY)
                 return ok;
        }
@@ -702,8 +697,6 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting)
        free(remotename);
        if (ok)
        {
-           /* SASL cancellation of authentication */
-           gen_send(sock, "*");
            if(ctl->server.authenticate != A_ANY)
                 return ok;
        }