]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix a null-deref in incoming DoH w/ nghttp2 14012/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 29 Mar 2024 13:12:29 +0000 (14:12 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 2 Apr 2024 08:59:35 +0000 (10:59 +0200)
commite0012656392351c6f73c6ee030251e87ee986a5b
tree455754d573e7db9bf90eef379f6a0e0f34be84c4
parent54a03205dc1ca9a3ba91a00bea00c265d2e5827d
dnsdist: Fix a null-deref in incoming DoH w/ nghttp2

When an incoming DoH connection using the `nghttp2` provider is waiting
for a response from a backend that results in a I/O error or timeout,
and the incoming connection also fails due to a I/O error or timeout,
dnsdist could in some cases try to dereference a null pointer, leading
to a crash.

(cherry picked from commit 0e809f7ec9796cae0e3cc0b6e7407083a22cc157)
pdns/dnsdistdist/dnsdist-nghttp2-in.cc
pdns/dnsdistdist/test-dnsdistnghttp2-in_cc.cc