From: Nigel Kukard Date: Sun, 3 Sep 2017 05:20:48 +0000 (+0000) Subject: bgpd: Fixed incorrect MTYPE being used for large communites X-Git-Tag: frr-4.0-dev~348^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=600d7ff8741f0225064f34739cef776619b3c8f7;p=mirror%2Ffrr.git bgpd: Fixed incorrect MTYPE being used for large communites Signed-off-by: Nigel Kukard --- diff --git a/bgpd/bgp_lcommunity.c b/bgpd/bgp_lcommunity.c index ad7cb36afe..395ae52712 100644 --- a/bgpd/bgp_lcommunity.c +++ b/bgpd/bgp_lcommunity.c @@ -523,10 +523,10 @@ void lcommunity_del_val(struct lcommunity *lcom, u_char *ptr) if (lcom->size > 0) lcom->val = - XREALLOC(MTYPE_COMMUNITY_VAL, lcom->val, + XREALLOC(MTYPE_LCOMMUNITY_VAL, lcom->val, lcom_length(lcom)); else { - XFREE(MTYPE_COMMUNITY_VAL, lcom->val); + XFREE(MTYPE_LCOMMUNITY_VAL, lcom->val); lcom->val = NULL; } return;