From 7755d9d86a94a8608c280f4bff9af4608103f3a8 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 25 Sep 2010 16:56:22 +0200 Subject: Actually use GSS status string length field. --- gssapi.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gssapi.c') diff --git a/gssapi.c b/gssapi.c index 48f690c4..f769cc81 100644 --- a/gssapi.c +++ b/gssapi.c @@ -52,10 +52,9 @@ static void decode_subr(const char *m, uint32_t code, int type) report(stderr, GT_("GSSAPI error in gss_display_status called from <%s>\n"), m); break; } - report(stderr, GT_("GSSAPI error %s: %s\n"), m, - msg.value ? (char *)msg.value : GT_("(null)")); - if (msg.length) - (void)gss_release_buffer(&min, &msg); + report(stderr, GT_("GSSAPI error %s: %.*s\n"), m, + (int)msg.length, (char *)msg.value); + (void)gss_release_buffer(&min, &msg); } while(context); } -- cgit v1.2.3