From d165e73fffcd80e4dfda41a09745c17301644eb1 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Sat, 1 Jan 2022 05:57:14 +0000 Subject: [PATCH] bx509d: don't audit NULL message string formatted can be NULL, it appeares the intention was to log msg instead --- kdc/bx509d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdc/bx509d.c b/kdc/bx509d.c index 2f30744bf..caafc5a7b 100644 --- a/kdc/bx509d.c +++ b/kdc/bx509d.c @@ -511,7 +511,7 @@ bad_reqv(struct bx509_request_desc *r, msg = formatted; formatted = NULL; } - heim_audit_addreason((heim_svc_req_desc)r, "%s", formatted); + heim_audit_addreason((heim_svc_req_desc)r, "%s", msg); audit_trail(r, code); krb5_free_error_message(context, k5msg);