From 414cdcecacd0e573bbf542d73947bf2b3ae9870b Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 25 Sep 2010 17:07:01 +0200 Subject: Report GSSAPI errors later, to ease debugging. --- gssapi.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gssapi.c') 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; -- cgit v1.2.3