projects
/
haproxy-3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25e36bf
)
BUG/MINOR: quic: Wrong datagram dispatch because of qc_check_dcid()
author
Frédéric Lécaille
<flecaille@haproxy.com>
Mon, 13 Feb 2023 15:14:24 +0000
(16:14 +0100)
committer
Frédéric Lécaille
<flecaille@haproxy.com>
Mon, 13 Feb 2023 15:14:24 +0000
(16:14 +0100)
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.
src/quic_conn.c
patch
|
blob
|
history
diff --git
a/src/quic_conn.c
b/src/quic_conn.c
index
bf0581c
..
a73f7c0
100644
(file)
--- a/
src/quic_conn.c
+++ b/
src/quic_conn.c
@@
-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;
}