mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-16 18:50:13 +00:00
Merge pull request #7608 from qlyoung/fix-missing-sockunion-init
bgpd: remove unused, uninitialized sockunion
This commit is contained in:
commit
30ac1cdab8
@ -4263,7 +4263,6 @@ int peer_conf_interface_create(struct bgp *bgp, const char *conf_if, afi_t afi,
|
|||||||
struct peer *peer;
|
struct peer *peer;
|
||||||
struct peer_group *group;
|
struct peer_group *group;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
union sockunion su;
|
|
||||||
|
|
||||||
group = peer_group_lookup(bgp, conf_if);
|
group = peer_group_lookup(bgp, conf_if);
|
||||||
|
|
||||||
@ -4338,7 +4337,7 @@ int peer_conf_interface_create(struct bgp *bgp, const char *conf_if, afi_t afi,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = peer_group_bind(bgp, &su, peer, group, &as);
|
ret = peer_group_bind(bgp, NULL, peer, group, &as);
|
||||||
}
|
}
|
||||||
|
|
||||||
return bgp_nb_errmsg_return(errmsg, errmsg_len, ret);
|
return bgp_nb_errmsg_return(errmsg, errmsg_len, ret);
|
||||||
|
Loading…
Reference in New Issue
Block a user