From 2f9ed48d93209e1943d8e3d17c65d0b805d6f938 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 4 Jun 2021 14:51:45 +0100 Subject: [PATCH] coverity: report problem in hpack_dynamic_size() to parent --- lib/roles/h2/ops-h2.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/roles/h2/ops-h2.c b/lib/roles/h2/ops-h2.c index cc442f8e4..7ac517f89 100644 --- a/lib/roles/h2/ops-h2.c +++ b/lib/roles/h2/ops-h2.c @@ -1278,8 +1278,9 @@ rops_alpn_negotiated_h2(struct lws *wsi, const char *alpn) /* HTTP2 union */ - lws_hpack_dynamic_size(wsi, - (int)wsi->h2.h2n->our_set.s[H2SET_HEADER_TABLE_SIZE]); + if (lws_hpack_dynamic_size(wsi, + (int)wsi->h2.h2n->our_set.s[H2SET_HEADER_TABLE_SIZE])) + return 1; wsi->txc.tx_cr = 65535; lwsl_info("%s: %s: configured for h2\n", __func__, lws_wsi_tag(wsi));