mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-02 19:28:19 +00:00
bgpd: Use lcommunity_new() to allocate new lcommunity
Signed-off-by: Nigel Kukard <nkukard@lbsd.net>
This commit is contained in:
parent
3ac053e608
commit
cb0c2da3a8
@ -148,7 +148,7 @@ struct lcommunity *lcommunity_dup(struct lcommunity *lcom)
|
||||
{
|
||||
struct lcommunity *new;
|
||||
|
||||
new = XCALLOC(MTYPE_LCOMMUNITY, sizeof(struct lcommunity));
|
||||
new = lcommunity_new();
|
||||
new->size = lcom->size;
|
||||
if (new->size) {
|
||||
new->val = XMALLOC(MTYPE_LCOMMUNITY_VAL, lcom_length(lcom));
|
||||
|
Loading…
Reference in New Issue
Block a user