]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: Fixed incorrect MTYPE being used for large communites
authorNigel Kukard <nkukard@lbsd.net>
Sun, 3 Sep 2017 05:20:48 +0000 (05:20 +0000)
committerNigel Kukard <nkukard@lbsd.net>
Sun, 3 Sep 2017 06:35:14 +0000 (06:35 +0000)
Signed-off-by: Nigel Kukard <nkukard@lbsd.net>
bgpd/bgp_lcommunity.c

index ad7cb36afeed6e4187111030e2db440b700ee732..395ae527120aa23c35b724f54f691898b7258cde 100644 (file)
@@ -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;