bx509d: don't audit NULL message string

formatted can be NULL, it appeares the intention was to log msg instead
This commit is contained in:
Luke Howard
2022-01-01 05:57:14 +00:00
parent 52b1dffa63
commit d165e73fff

View File

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