svn rev #25853: trunk/src/lib/krb5/os/

ghudson@MIT.EDU ghudson at MIT.EDU
Mon May 7 23:04:12 EDT 2012


http://src.mit.edu/fisheye/changelog/krb5/?cs=25853
Commit By: ghudson
Log Message:
Improve display of error code 0 in trace output


Changed Files:
U   trunk/src/lib/krb5/os/trace.c
Modified: trunk/src/lib/krb5/os/trace.c
===================================================================
--- trunk/src/lib/krb5/os/trace.c	2012-05-08 03:04:07 UTC (rev 25852)
+++ trunk/src/lib/krb5/os/trace.c	2012-05-08 03:04:12 UTC (rev 25853)
@@ -178,7 +178,8 @@
         } else if (strcmp(tmpbuf, "kerr") == 0) {
             kerr = va_arg(ap, krb5_error_code);
             p = krb5_get_error_message(context, kerr);
-            krb5int_buf_add_fmt(&buf, "%ld/%s", (long) kerr, p);
+            krb5int_buf_add_fmt(&buf, "%ld/%s", (long) kerr,
+                                kerr ? p : "Success");
             krb5_free_error_message(context, p);
         } else if (strcmp(tmpbuf, "keyblock") == 0) {
             keyblock = va_arg(ap, const krb5_keyblock *);



More information about the cvs-krb5 mailing list