mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-01-27 20:52:55 +00:00
tests: fix missing init in bgp_mp_attr_test.c
turns out, bgp_mp_reach_parse really doesn't like getting garbage attribute input. In particular, attr->extra better be NULL or we merrily go trample random places (like our stack). Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
1cb9cf062e
commit
aeef13b0d5
@ -436,8 +436,8 @@ parse_test (struct peer *peer, struct test_segment *t, int type)
|
||||
{
|
||||
int ret;
|
||||
int oldfailed = failed;
|
||||
struct attr attr;
|
||||
struct bgp_nlri nlri;
|
||||
struct attr attr = { };
|
||||
struct bgp_nlri nlri = { };
|
||||
struct bgp_attr_parser_args attr_args = {
|
||||
.peer = peer,
|
||||
.length = t->len,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user