krb5: fix test_pac format string

Don't pass a potentially (although in reality, not) untrusted string to
krb5_err(); cleanup error handling.
This commit is contained in:
Luke Howard
2021-09-19 14:01:04 +10:00
parent 6c339fd5a5
commit 2acc4508d9

View File

@@ -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