summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
Diffstat (limited to 'proto')
-rw-r--r--proto/bgp/packets.c2
-rw-r--r--proto/static/static.c2
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);
}