Skip to content

Commit

Permalink
* aspath_make_str_count() fix: slightly enlarged expected ASN length to
Browse files Browse the repository at this point in the history
  take into account 32-bit ASNs. 10 chars per ASN reserved instead of 5.
  • Loading branch information
paololucente authored and paolo committed Sep 8, 2009
1 parent 938f573 commit e3c7b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bgp/bgp_aspath.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ aspath_make_str_count (struct aspath *as)
* With 32bit ASNs, this range will increase, but only worth changing
* once there are significant numbers of ASN >= 100000
*/
#define ASN_STR_LEN (5 + 1)
#define ASN_STR_LEN (10 + 1)
str_size = MAX (assegment_count_asns (seg, 0) * ASN_STR_LEN + 2 + 1,
ASPATH_STR_DEFAULT_LEN);
str_buf = malloc(str_size);
Expand Down

0 comments on commit e3c7b30

Please sign in to comment.