Skip to content
Permalink
Browse files

bgpd: fix resource leak (Coverity 1475489)

Signed-off-by: F. Aragon <paco@voltanet.io>
  • Loading branch information...
pacovn committed Nov 16, 2018
1 parent 6b2ddd6 commit 449cff3ed78dc8b4c526420d0328bb4af5028459
Showing with 3 additions and 1 deletion.
  1. +3 −1 bgpd/bgp_network.c
@@ -709,8 +709,10 @@ int bgp_socket(struct bgp *bgp, unsigned short port, const char *address)
return -1;
}
if (bgp_option_check(BGP_OPT_NO_ZEBRA) &&
bgp->vrf_id != VRF_DEFAULT)
bgp->vrf_id != VRF_DEFAULT) {
freeaddrinfo(ainfo_save);
return -1;
}
count = 0;
for (ainfo = ainfo_save; ainfo; ainfo = ainfo->ai_next) {
int sock;

0 comments on commit 449cff3

Please sign in to comment.
You can’t perform that action at this time.