Merge pull request #7608 from qlyoung/fix-missing-sockunion-init

bgpd: remove unused, uninitialized sockunion
This commit is contained in:
Mark Stapp 2020-11-25 16:07:08 -05:00 committed by GitHub
commit 30ac1cdab8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);