Merge pull request #2278 from donaldsharp/uninited_variable

bgpd: Fix use of uninitialized variable
This commit is contained in:
Renato Westphal 2018-05-23 22:58:52 -03:00 committed by GitHub
commit 39f7319dac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1193,7 +1193,7 @@ void bgp_zebra_announce(struct bgp_node *rn, struct prefix *p,
return; return;
if (bgp_debug_zebra(p)) if (bgp_debug_zebra(p))
prefix2str(&api.prefix, buf_prefix, sizeof(buf_prefix)); prefix2str(p, buf_prefix, sizeof(buf_prefix));
if (safi == SAFI_FLOWSPEC) if (safi == SAFI_FLOWSPEC)
return bgp_pbr_update_entry(bgp, &rn->p, return bgp_pbr_update_entry(bgp, &rn->p,