Merge pull request #220 from opensourcerouting/fixes/addpath_id

Fix bgp_info_addpath_{rx,tx}_str if addpath info is not present
This commit is contained in:
Donald Sharp 2017-02-23 10:53:51 -05:00 committed by GitHub
commit 9965fdbfbf
2 changed files with 4 additions and 0 deletions

View File

@ -2281,6 +2281,8 @@ bgp_info_addpath_rx_str(u_int32_t addpath_id, char *buf)
{
if (addpath_id)
sprintf(buf, " with addpath ID %d", addpath_id);
else
buf[0] = '\0';
}

View File

@ -619,6 +619,8 @@ bgp_info_addpath_tx_str (int addpath_encode, u_int32_t addpath_tx_id,
{
if (addpath_encode)
sprintf(buf, " with addpath ID %d", addpath_tx_id);
else
buf[0] = '\0';
}
/* Make BGP update packet. */