]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: remove unnecessary call to free_quic_conn_cids()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Dec 2021 10:30:11 +0000 (11:30 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Dec 2021 14:51:00 +0000 (15:51 +0100)
free_quic_conn_cids() was called in quic_build_post_handshake_frames()
if an error occured. However, the only error is an allocation failure of
the CID which does not required to call it.

This change is required for future refcount implementation. The CID lock
will be removed from the free_quic_conn_cids() and to the caller.

src/xprt_quic.c

index 500814fd1f76067ebccd2a36580a61af4b4ee59f..5874d1c354e5fbddd4160c66ad3b9bcebebb5ad5 100644 (file)
@@ -2687,7 +2687,6 @@ static int quic_build_post_handshake_frames(struct quic_conn *qc)
     return 1;
 
  err:
-       free_quic_conn_cids(qc);
        return 0;
 }