From 5e078cdf6eecbbe15798993a55de0174d6dcd79b Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Mon, 24 Aug 2020 11:51:18 -0500 Subject: [PATCH] base: Fix logging bug --- lib/base/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/log.c b/lib/base/log.c index f12f7c6d4..a027004ce 100644 --- a/lib/base/log.c +++ b/lib/base/log.c @@ -723,7 +723,7 @@ heim_audit_vaddreason(heim_svc_req_desc r, const char *fmt, va_list ap) if (str2) { heim_release(r->reason); heim_release(str); - r->reason = str; + r->reason = str2; } /* else the earlier reason is likely better than the newer one */ return; }