From: David Lamparter Date: Wed, 23 Jan 2013 03:20:37 +0000 (+0100) Subject: tests: fix missing init in bgp_mp_attr_test.c X-Git-Tag: frr-2.0-rc1~1694 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=aeef13b0d5b50a90f293c93eb5a34c2a099d140b;p=mirror%2Ffrr.git 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 --- diff --git a/tests/bgp_mp_attr_test.c b/tests/bgp_mp_attr_test.c index f086740fd3..177c1ad8dc 100644 --- a/tests/bgp_mp_attr_test.c +++ b/tests/bgp_mp_attr_test.c @@ -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,