summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-08-25 19:01:37 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2009-08-25 19:01:37 +0200
commit949bd34e81ee99370decdabefa51c9c11ffe915b (patch)
tree0b1235cf3aeebdf0f161d2782a66d9fc7d4d7369 /proto
parenta0c405501fa6a0df8472f1598256e725cec753fd (diff)
downloadbird-949bd34e81ee99370decdabefa51c9c11ffe915b.tar
bird-949bd34e81ee99370decdabefa51c9c11ffe915b.zip
Fixes bug related to AS2->AS4 conversion.
Diffstat (limited to 'proto')
-rw-r--r--proto/bgp/attrs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c
index 68f21b9..bf976a6 100644
--- a/proto/bgp/attrs.c
+++ b/proto/bgp/attrs.c
@@ -1189,7 +1189,7 @@ bgp_reconstruct_4b_atts(struct bgp_proto *p, rta *a, struct linpool *pool)
if (a4)
log(L_WARN "%s: AS4_AGGREGATOR attribute received, but AGGREGATOR attribute is missing", p->p.name);
- int p2_len = as_path_getlen(p2->u.ptr);
+ int p2_len = as_path_getlen_int(p2->u.ptr, 2);
int p4_len = p4 ? validate_as4_path(p, p4->u.ptr) : -1;
if (p4 && (p4_len < 0))