]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Gets date_utc from the log structure
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 25 May 2018 06:57:41 +0000 (12:57 +0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 25 May 2018 06:57:41 +0000 (12:57 +0600)
src/lib/util/log.c

index 505a90000bc9862f1a9881b31d3ae9974d505c38..cc4377c75d50147d0871236165d05b2d80e7ecfb 100644 (file)
@@ -230,7 +230,7 @@ int fr_vlog(fr_log_t const *log, fr_log_type_t type, char const *msg, va_list ap
 
                timeval = time(NULL);
 #ifdef HAVE_GMTIME_R
-               if (log_dates_utc) {
+               if (log->dates_utc) {
                        struct tm utc;
                        gmtime_r(&timeval, &utc);
                        ASCTIME_R(&utc, buffer + len, sizeof(buffer) - len - 1);