From: Matus Fabian Date: Sun, 8 Jun 2025 17:38:13 +0000 (-0400) Subject: http: http2_handle_continuation_frame coverity fix X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F06%2F43106%2F2;p=vpp.git http: http2_handle_continuation_frame coverity fix Type: fix Change-Id: I05b4308dd689d1977b59c6ef5791561f7e45693c Signed-off-by: Matus Fabian --- diff --git a/src/plugins/http/http2/http2.c b/src/plugins/http/http2/http2.c index 36a27f40de4..f9f281f8b90 100644 --- a/src/plugins/http/http2/http2.c +++ b/src/plugins/http/http2/http2.c @@ -1198,6 +1198,8 @@ http2_handle_continuation_frame (http_conn_t *hc, http2_frame_header_t *fh) if (fh->flags & HTTP2_FRAME_FLAG_END_HEADERS) { req = http2_conn_get_req (hc, fh->stream_id); + if (!req) + return HTTP2_ERROR_PROTOCOL_ERROR; h2c->flags &= ~HTTP2_CONN_F_EXPECT_CONTINUATION; req->payload = h2c->unparsed_headers; req->payload_len = vec_len (h2c->unparsed_headers);