]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix a crash when TCP queries and responses keep coming
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 13 May 2025 13:50:21 +0000 (15:50 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 20 May 2025 07:29:58 +0000 (09:29 +0200)
commitbb9aaec283b97c1ef2081cc66a2cf33e6edc40ea
tree80261d5a2b8f5dfaaedd3dd561e8129dbf3b11ec
parent413885bdeaf1afa44359991e746b3c55e2b76f77
dnsdist: Fix a crash when TCP queries and responses keep coming

It happens when we keep finding queries waiting for us on the incoming
TCP socket from the client, and responses waiting for us on the TCP
socket to the backend after forwarding a new query. This is quite
unlikely but not impossible to happen, as reported by Renaud Allard
(many thanks for taking the time to investigate the issue!).
pdns/dnsdistdist/dnsdist-tcp-upstream.hh
pdns/dnsdistdist/dnsdist-tcp.cc