diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2010-09-25 16:56:22 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2010-09-25 17:37:23 +0200 |
commit | 7755d9d86a94a8608c280f4bff9af4608103f3a8 (patch) | |
tree | 916b8a4a0014ff340d0d29e333a06e2d1b7f4528 | |
parent | cbd935789d1cda54867fbefab2d27c65acd0a5dc (diff) | |
download | fetchmail-7755d9d86a94a8608c280f4bff9af4608103f3a8.tar.gz fetchmail-7755d9d86a94a8608c280f4bff9af4608103f3a8.tar.bz2 fetchmail-7755d9d86a94a8608c280f4bff9af4608103f3a8.zip |
Actually use GSS status string length field.
-rw-r--r-- | gssapi.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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); } |