aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-09-25 17:07:01 +0200
committerMatthias Andree <matthias.andree@gmx.de>2010-09-25 17:37:23 +0200
commit414cdcecacd0e573bbf542d73947bf2b3ae9870b (patch)
treed6b898b7555c5836a56114ac88893ab2640c60f3
parent7755d9d86a94a8608c280f4bff9af4608103f3a8 (diff)
downloadfetchmail-414cdcecacd0e573bbf542d73947bf2b3ae9870b.tar.gz
fetchmail-414cdcecacd0e573bbf542d73947bf2b3ae9870b.tar.bz2
fetchmail-414cdcecacd0e573bbf542d73947bf2b3ae9870b.zip
Report GSSAPI errors later, to ease debugging.
-rw-r--r--gssapi.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gssapi.c b/gssapi.c
index f769cc81..65582e52 100644
--- a/gssapi.c
+++ b/gssapi.c
@@ -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;