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:
parent
25e36bfc22
commit
07846cbda8
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue