]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Prevent leaking the console's socket descriptors 11543/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 15 Apr 2022 08:38:08 +0000 (10:38 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 15 Apr 2022 08:38:08 +0000 (10:38 +0200)
commit6d72e42a0d84139d3baceb9135e8610efe1ca1c4
tree43a2dd808a785f761c36b933e4674fb47b8b8fab
parent280acaaf4bb2e28eac3f5811293f571c0c8073ab
dnsdist: Prevent leaking the console's socket descriptors

I don't see any case where that could happen but better wrap the
socket descriptors in FDWrapper objects so that we cannot forget to
close them if an exception is raised, for example.
pdns/dnsdist-console.cc