From c9c2fe8b310cd071b6780f11ccf669da2bf1eefc Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com> Date: Mon, 6 Nov 2023 12:10:24 +0100 Subject: [PATCH] Fix dead code identified by Coverity Scan Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com> --- cstp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cstp.c b/cstp.c index df38207a..656a653e 100644 --- a/cstp.c +++ b/cstp.c @@ -841,7 +841,7 @@ int decompress_and_queue_packet(struct openconnect_info *vpninfo, int compr_type comprname = "LZS"; new->len = lzs_decompress(new->data, receive_mtu, buf, len); - if (new->len < 0) { + if (new->len <= 0) { len = new->len; if (len == 0) len = -EINVAL; -- 2.50.1