aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-09-25 16:56:22 +0200
committerMatthias Andree <matthias.andree@gmx.de>2010-09-25 17:37:23 +0200
commit7755d9d86a94a8608c280f4bff9af4608103f3a8 (patch)
tree916b8a4a0014ff340d0d29e333a06e2d1b7f4528
parentcbd935789d1cda54867fbefab2d27c65acd0a5dc (diff)
downloadfetchmail-7755d9d86a94a8608c280f4bff9af4608103f3a8.tar.gz
fetchmail-7755d9d86a94a8608c280f4bff9af4608103f3a8.tar.bz2
fetchmail-7755d9d86a94a8608c280f4bff9af4608103f3a8.zip
Actually use GSS status string length field.
-rw-r--r--gssapi.c7
1 files changed, 3 insertions, 4 deletions
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);
}