diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2010-09-25 17:07:01 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2010-09-25 17:37:23 +0200 |
commit | 414cdcecacd0e573bbf542d73947bf2b3ae9870b (patch) | |
tree | d6b898b7555c5836a56114ac88893ab2640c60f3 | |
parent | 7755d9d86a94a8608c280f4bff9af4608103f3a8 (diff) | |
download | fetchmail-414cdcecacd0e573bbf542d73947bf2b3ae9870b.tar.gz fetchmail-414cdcecacd0e573bbf542d73947bf2b3ae9870b.tar.bz2 fetchmail-414cdcecacd0e573bbf542d73947bf2b3ae9870b.zip |
Report GSSAPI errors later, to ease debugging.
-rw-r--r-- | gssapi.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -178,11 +178,14 @@ int do_gssauth(int sock, const char *command, const char *service, if (maj_stat!=GSS_S_COMPLETE && maj_stat!=GSS_S_CONTINUE_NEEDED) { decode_status("gss_init_sec_context", maj_stat, min_stat); (void)gss_release_name(&min_stat, &target_name); - report(stderr, GT_("Error exchanging credentials\n")); /* wake up server and await NO response */ - SockWrite(sock, "\r\n", 2); + suppress_tags = TRUE; + gen_send(sock, ""); + suppress_tags = FALSE; + result = gen_recv(sock, buf1, sizeof buf1); + report(stderr, GT_("Error exchanging credentials\n")); if (result) return result; return PS_AUTHFAIL; |