diff options
author | Nigel Kukard <nkukard@lbsd.net> | 2017-09-03 07:20:48 +0200 |
---|---|---|
committer | Nigel Kukard <nkukard@lbsd.net> | 2017-09-03 08:35:14 +0200 |
commit | 600d7ff8741f0225064f34739cef776619b3c8f7 (patch) | |
tree | 3eead69141c073bc1c299859d15ba8f1def01d19 /bgpd/bgp_lcommunity.c | |
parent | bgpd: Fixed pointer calculation issue in lcommunity (diff) | |
download | frr-600d7ff8741f0225064f34739cef776619b3c8f7.tar.xz frr-600d7ff8741f0225064f34739cef776619b3c8f7.zip |
bgpd: Fixed incorrect MTYPE being used for large communites
Signed-off-by: Nigel Kukard <nkukard@lbsd.net>
Diffstat (limited to 'bgpd/bgp_lcommunity.c')
-rw-r--r-- | bgpd/bgp_lcommunity.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_lcommunity.c b/bgpd/bgp_lcommunity.c index ad7cb36af..395ae5271 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; |