mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-25 07:28:41 +00:00
bgpd: do not init labels in extra
No need to init labels at extra allocation. num_labels is the number of set labels in label[] and is initialized to 0 by default. Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
This commit is contained in:
parent
7a513e3361
commit
e93fa4daf0
@ -235,8 +235,6 @@ static struct bgp_path_info_extra *bgp_path_info_extra_new(void)
|
||||
struct bgp_path_info_extra *new;
|
||||
new = XCALLOC(MTYPE_BGP_ROUTE_EXTRA,
|
||||
sizeof(struct bgp_path_info_extra));
|
||||
new->label[0] = MPLS_INVALID_LABEL;
|
||||
new->num_labels = 0;
|
||||
new->flowspec = NULL;
|
||||
return new;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user