Skip to content
Permalink
Browse files

bgpd: fix wrong allocation size in rpki route map

Signed-off-by: Marcel Röthke <marcel.roethke@haw-hamburg.de>
  • Loading branch information...
mroethke committed Jul 19, 2018
1 parent 4ce8267 commit 0b2c4b35605279fbaeadd899185802eb1c2ef89e
Showing with 1 addition and 1 deletion.
  1. +1 −1 bgpd/bgp_rpki.c
@@ -232,7 +232,7 @@ static void *route_match_compile(const char *arg)
{
int *rpki_status;

rpki_status = XMALLOC(MTYPE_ROUTE_MAP_COMPILED, sizeof(uint8_t));
rpki_status = XMALLOC(MTYPE_ROUTE_MAP_COMPILED, sizeof(int));

if (strcmp(arg, "valid") == 0)
*rpki_status = RPKI_VALID;

0 comments on commit 0b2c4b3

Please sign in to comment.
You can’t perform that action at this time.