Don't start malloc() logging until the log system is configured.

This commit is contained in:
Simon Kelley committed 2026-01-25 12:20:04 +00:00
1 parent f1fa05d754
commit 80acb76f46
3 files changed
+13 -6

No files matched your search

+3
View File
@@ -864,6 +864,9 @@ int main (int argc, char **argv)
}
#endif
/* Don't start logging malloc before logging is set up. */
daemon->log_malloc = option_bool(OPT_LOG_MALLOC);
if (daemon->port == 0)
my_syslog(LOG_INFO, _("started, version %s DNS disabled"), VERSION);
else