From 450e31e33318473797e3c0fe10e3ed62bddac7b9 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 15 Apr 2019 22:02:30 -0700 Subject: [PATCH] modules/s_listen: Use tls buffer for these stringifications. --- modules/s_listen.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/s_listen.cc b/modules/s_listen.cc index 04022242c..bdb344c35 100644 --- a/modules/s_listen.cc +++ b/modules/s_listen.cc @@ -205,12 +205,13 @@ static bool _listener_proffer(net::listener &listener, const net::ipport &ipport) { + thread_local char strbuf[256]; if(unlikely(ircd::run::level != ircd::run::level::RUN)) { log::dwarning { "Refusing to add new client from %s in runlevel %s", - string(ipport), + string(strbuf, ipport), reflect(ircd::run::level) }; @@ -226,7 +227,7 @@ _listener_proffer(net::listener &listener, log::warning { "Refusing to add new client from %s because maximum of %zu reached", - string(ipport), + string(strbuf, ipport), size_t(client::settings::max_client) };