]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Useless statement in quic_crypto_data_cpy()
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 2 Feb 2022 14:57:22 +0000 (15:57 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 14 Feb 2022 14:20:54 +0000 (15:20 +0100)
This should fix Coverity CID 375057 in GH #1526 where a useless assignment
was detected.

src/xprt_quic.c

index 0793967b620cd057742d4557f4dc3427cdb3eed7..5aa1893d1b0f87bea2d5d7ef54e22d13cf93af30 100644 (file)
@@ -972,7 +972,6 @@ static int quic_crypto_data_cpy(struct quic_enc_level *qel,
                        /* Increment the total size of this CRYPTO buffers by <to_copy>. */
                        qel->tx.crypto.sz += to_copy;
                        (*qcb)->sz += to_copy;
-                       pos += to_copy;
                        len -= to_copy;
                        data += to_copy;
                }