Skip to content

Commit

Permalink
Merge pull request PowerDNS#13735 from rgacogne/ddist-coverity-20240123
Browse files Browse the repository at this point in the history
dnsdist: Move the console socket instead of copying it
  • Loading branch information
rgacogne committed Jan 23, 2024
2 parents 646d395 + c19f465 commit fa593de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdns/dnsdist-lua.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ static void setupLuaConfig(LuaContext& luaCtx, bool client, bool configCheck)
auto sock = std::make_shared<Socket>(local.sin4.sin_family, SOCK_STREAM, 0);
sock->bind(local, true);
sock->listen(5);
auto launch = [sock, local]() {
auto launch = [sock = std::move(sock), local]() {
std::thread consoleControlThread(controlThread, sock, local);
consoleControlThread.detach();
};
Expand Down

0 comments on commit fa593de

Please sign in to comment.