]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: quic: memleak on wrong datagram receipt
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 12 Aug 2022 09:55:20 +0000 (11:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Aug 2022 10:19:26 +0000 (12:19 +0200)
There was a missing pool_free() call for such datagrams. As far as I see
there is no leak on valid datagram receipt.

Must be backported to 2.6.

src/quic_sock.c

index e74e8893dc50bc46fdbfa2729654e3e01268ace6..8d197568710fa14a799d59ed878c9babf7283bf5 100644 (file)
@@ -257,6 +257,7 @@ static int quic_lstnr_dgram_dispatch(unsigned char *buf, size_t len, void *owner
        return 1;
 
  err:
+       pool_free(pool_head_quic_dgram, new_dgram);
        return 0;
 }