]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Fix dead code identified by Coverity Scan
authorDimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Mon, 6 Nov 2023 11:10:24 +0000 (12:10 +0100)
committerDimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Mon, 6 Nov 2023 13:31:22 +0000 (14:31 +0100)
Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
cstp.c

diff --git a/cstp.c b/cstp.c
index df38207adc93d83fcaedb54ad8a538838ab63da9..656a653e69d77612f3fafb325eed86718bac6095 100644 (file)
--- 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;