diff options
author | Denis Ovsienko <pilot@etcnet.org> | 2009-04-30 17:16:22 +0400 |
---|---|---|
committer | Denis Ovsienko <pilot@etcnet.org> | 2009-04-30 17:16:22 +0400 |
commit | aea339f72807c34a7916d8614e030069815e144c (patch) | |
tree | 7b0ab93dcfec82736f05ac39106096360e4ceeb5 /bgpd/bgp_community.c | |
parent | c540835eaf0cb59921969537d8e94cc83bb717f5 (diff) |
[bgpd] AS4 bugfix by Chris Caputo <ccaputo@alt.net>
* bgpd/bgp_aspath.c: (aspath_make_str_count) "assert (len < str_size)" was
getting hit under certain 4-byte ASN conditions. New realloc strategy.
* bgpd/bgp_aspath.c: (aspath_key_make) const warning fix.
"%d" -> "%u" 4-byte ASN corrections. Prevent negative number when ASN is
above 2^31.
Diffstat (limited to 'bgpd/bgp_community.c')
-rw-r--r-- | bgpd/bgp_community.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_community.c b/bgpd/bgp_community.c index 1cafdb3e..a05ea6c6 100644 --- a/bgpd/bgp_community.c +++ b/bgpd/bgp_community.c @@ -282,7 +282,7 @@ community_com2str (struct community *com) default: as = (comval >> 16) & 0xFFFF; val = comval & 0xFFFF; - sprintf (pnt, "%d:%d", as, val); + sprintf (pnt, "%u:%d", as, val); pnt += strlen (pnt); break; } |