summaryrefslogtreecommitdiff
path: root/proto/bgp/packets.c
diff options
context:
space:
mode:
authorJan Moskyto Matejka <mq@ucw.cz>2017-02-24 14:05:11 +0100
committerJan Moskyto Matejka <mq@ucw.cz>2017-02-24 14:05:11 +0100
commit039a65d0e4f33f8432caae78cd919d2fd2052eea (patch)
tree3580619e800525d1d89ef0b1a41596249f2e070c /proto/bgp/packets.c
parent93f50ca31757fc8e416093e0c73681e070294a3d (diff)
Nexthop: Fixed hostentry
Diffstat (limited to 'proto/bgp/packets.c')
-rw-r--r--proto/bgp/packets.c2
1 files changed, 1 insertions, 1 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;