diff options
-rw-r--r-- | gssapi.c | 4 | ||||
-rw-r--r-- | imap.c | 1 |
2 files changed, 2 insertions, 3 deletions
@@ -179,9 +179,9 @@ int do_gssauth(int sock, const char *command, const char *service, decode_status("gss_init_sec_context", maj_stat, min_stat); (void)gss_release_name(&min_stat, &target_name); - /* wake up server and await NO response */ + /* wake up server and cancel authentication */ suppress_tags = TRUE; - gen_send(sock, ""); + gen_send(sock, "*"); suppress_tags = FALSE; result = gen_recv(sock, buf1, sizeof buf1); @@ -574,7 +574,6 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting) ctl->server.truename, ctl->remotename))) { /* SASL cancellation of authentication */ - gen_send(sock, "*"); if (ctl->server.authenticate != A_ANY) return ok; } else { |