]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: A goaway frame can't be a headers or data one 10845/head
authorRemi Gacogne <rgacogne+github@valombre.net>
Mon, 25 Oct 2021 08:52:00 +0000 (10:52 +0200)
committerGitHub <noreply@github.com>
Mon, 25 Oct 2021 08:52:00 +0000 (10:52 +0200)
Co-authored-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
pdns/dnsdistdist/dnsdist-nghttp2.cc

index 452c3c414d3dbec989362d9dd8a013adbb31f108..001822c732b09727acb793b5bc6596a714976bad 100644 (file)
@@ -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 "<<frame->hd.stream_id<<" is now finished"<<endl;