diff options
author | Jan Moskyto Matejka <mq@ucw.cz> | 2017-02-24 14:05:11 +0100 |
---|---|---|
committer | Jan Moskyto Matejka <mq@ucw.cz> | 2017-02-24 14:05:11 +0100 |
commit | 039a65d0e4f33f8432caae78cd919d2fd2052eea (patch) | |
tree | 3580619e800525d1d89ef0b1a41596249f2e070c /proto | |
parent | 93f50ca31757fc8e416093e0c73681e070294a3d (diff) |
Nexthop: Fixed hostentry
Diffstat (limited to 'proto')
-rw-r--r-- | proto/bgp/packets.c | 2 | ||||
-rw-r--r-- | proto/static/static.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c index 2106e0d1..bee9248a 100644 --- a/proto/bgp/packets.c +++ b/proto/bgp/packets.c @@ -1705,7 +1705,7 @@ bgp_decode_nlri(struct bgp_parse_state *s, u32 afi, byte *nlri, uint len, ea_lis if (ea) { - a = allocz(sizeof(struct rta)); + a = allocz(RTA_MAX_SIZE); a->source = RTS_BGP; a->scope = SCOPE_UNIVERSE; diff --git a/proto/static/static.c b/proto/static/static.c index e5251bf6..63ee2518 100644 --- a/proto/static/static.c +++ b/proto/static/static.c @@ -120,7 +120,7 @@ drop: if (r->dest == RTDX_RECURSIVE) { - ap->nh.labels_append = ap->nh.labels = r->label_count; + ap->nh.labels_orig = ap->nh.labels = r->label_count; memcpy(ap->nh.label, r->label_stack, r->label_count * sizeof(u32)); rta_set_recursive_next_hop(p->main_channel->table, ap, p_igp_table(p), r->via, IPA_NONE); } |