From 2acc4508d991f686f48606295f5babf062d8d81f Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Sun, 19 Sep 2021 14:01:04 +1000 Subject: [PATCH] krb5: fix test_pac format string Don't pass a potentially (although in reality, not) untrusted string to krb5_err(); cleanup error handling. --- lib/krb5/test_pac.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/krb5/test_pac.c b/lib/krb5/test_pac.c index a8d77e948..ac94cf1a4 100644 --- a/lib/krb5/test_pac.c +++ b/lib/krb5/test_pac.c @@ -762,8 +762,7 @@ t_err(krb5_context context, const char *func, krb5_error_code error) { - fprintf(stderr, "test %s failed\n", test); - krb5_err(context, 1, error, func); + krb5_err(context, 1, error, "test %s failed in %s", test, func); } static krb5_boolean