From: Nick Porter Date: Fri, 25 Aug 2023 13:52:34 +0000 (+0100) Subject: Ensure we print the log entry with either error or fmt populated X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b349cca01fc4e5558016804753184112fef71a4;p=thirdparty%2Ffreeradius-server.git Ensure we print the log entry with either error or fmt populated --- diff --git a/src/lib/util/log.c b/src/lib/util/log.c index 21918d48af2..3b5a33914b6 100644 --- a/src/lib/util/log.c +++ b/src/lib/util/log.c @@ -682,9 +682,10 @@ void fr_vlog_perror(fr_log_t const *log, fr_log_type_t type, char const *file, i } /* coverity[check_return] */ fr_sbuff_in_strcpy(&sbuff, error); - error = fr_sbuff_start(&sbuff); /* may not be talloced with const */ } + error = fr_sbuff_start(&sbuff); /* may not be talloced with const */ + /* * Log the first line */