BUG/MINOR: quic: Wrong datagram dispatch because of qc_check_dcid()

There was a parenthesis placed in the wrong place for a memcmp().
As a consequence, clients could not reuse a UDP address for a new connection.

Must be backported to 2.7.
This commit is contained in:
Frédéric Lécaille 2023-02-13 16:14:24 +01:00
parent 25e36bfc22
commit 07846cbda8
1 changed files with 1 additions and 1 deletions

View File

@ -7542,7 +7542,7 @@ int qc_check_dcid(struct quic_conn *qc, unsigned char *dcid, size_t dcid_len)
if ((qc->scid.len == dcid_len &&
memcmp(qc->scid.data, dcid, dcid_len) == 0) ||
(qc->odcid.len == dcid_len &&
memcmp(qc->odcid.data, dcid, dcid_len)) == 0) {
memcmp(qc->odcid.data, dcid, dcid_len) == 0)) {
return 1;
}