diff --git a/lib/krb5/warn.c b/lib/krb5/warn.c index 16a272173..86c039fc4 100644 --- a/lib/krb5/warn.c +++ b/lib/krb5/warn.c @@ -65,7 +65,7 @@ _warnerr(krb5_context context, int do_errtext, strlcat(xfmt, "%s", sizeof(xfmt)); - err_str = krb5_get_error_string(context); + err_str = krb5_get_error_message(context, code); if (err_str != NULL) { *arg++ = err_str; } else {