mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +00:00
Fixed length check miscalculation in IPv6 receive path.
This commit is contained in:
parent
47f18ac39a
commit
60a72ed49b
@ -602,7 +602,7 @@ bgp_do_rx_update(struct bgp_conn *conn,
|
||||
if (len < 1 || (*x != 16 && *x != 32) || len < *x + 2)
|
||||
goto bad;
|
||||
memcpy(bgp_attach_attr(&a0->eattrs, bgp_linpool, BA_NEXT_HOP, 16), x+1, 16);
|
||||
len -= *x + 1;
|
||||
len -= *x + 2;
|
||||
x += *x + 1;
|
||||
|
||||
/* Ignore SNPA info */
|
||||
|
Loading…
Reference in New Issue
Block a user