From 039a65d0e4f33f8432caae78cd919d2fd2052eea Mon Sep 17 00:00:00 2001 From: Jan Moskyto Matejka Date: Fri, 24 Feb 2017 14:05:11 +0100 Subject: Nexthop: Fixed hostentry --- proto/bgp/packets.c | 2 +- proto/static/static.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'proto') 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); } -- cgit v1.2.3