From 0b2b004121f65558e51b98e81b9120f5048ca8d3 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 25 Oct 2021 10:52:00 +0200 Subject: [PATCH] dnsdist: A goaway frame can't be a headers or data one Co-authored-by: Otto Moerbeek --- pdns/dnsdistdist/dnsdist-nghttp2.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdistdist/dnsdist-nghttp2.cc b/pdns/dnsdistdist/dnsdist-nghttp2.cc index 452c3c414d..001822c732 100644 --- a/pdns/dnsdistdist/dnsdist-nghttp2.cc +++ b/pdns/dnsdistdist/dnsdist-nghttp2.cc @@ -654,7 +654,7 @@ int DoHConnectionToBackend::on_frame_recv_callback(nghttp2_session* session, con } /* is this the last frame for this stream? */ - if ((frame->hd.type == NGHTTP2_HEADERS || frame->hd.type == NGHTTP2_DATA) && frame->hd.flags & NGHTTP2_FLAG_END_STREAM) { + else if ((frame->hd.type == NGHTTP2_HEADERS || frame->hd.type == NGHTTP2_DATA) && frame->hd.flags & NGHTTP2_FLAG_END_STREAM) { auto stream = conn->d_currentStreams.find(frame->hd.stream_id); if (stream != conn->d_currentStreams.end()) { // cerr<<"Stream "<hd.stream_id<<" is now finished"<