mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
BUG/MEDIUM: netscaler: use the appropriate IPv6 header size
IPv6 header has a fixed size of 40 bytes, not 20.
This commit is contained in:
parent
7d668f9e76
commit
c7cc69ac36
1 changed files with 2 additions and 2 deletions
|
|
@ -798,7 +798,7 @@ int conn_recv_netscaler_cip(struct connection *conn, int flag)
|
|||
|
||||
hdr_ip6 = (struct ip6_hdr *)line;
|
||||
|
||||
if (trash.len < 28) {
|
||||
if (trash.len < 48) {
|
||||
/* Fail if buffer length is not large enough to contain
|
||||
* CIP magic, CIP length, IPv6 header */
|
||||
goto missing;
|
||||
|
|
@ -808,7 +808,7 @@ int conn_recv_netscaler_cip(struct connection *conn, int flag)
|
|||
conn->err_code = CO_ER_CIP_BAD_PROTO;
|
||||
goto fail;
|
||||
}
|
||||
else if (trash.len < 48) {
|
||||
else if (trash.len < 68) {
|
||||
/* Fail if buffer length is not large enough to contain
|
||||
* CIP magic, CIP length, IPv6 header, TCP header */
|
||||
goto missing;
|
||||
|
|
|
|||
Loading…
Reference in a new issue