diff options
Diffstat (limited to 'bgpd/bgp_network.c')
| -rw-r--r-- | bgpd/bgp_network.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bgpd/bgp_network.c b/bgpd/bgp_network.c index cae11ae7bd..fcbdb2969f 100644 --- a/bgpd/bgp_network.c +++ b/bgpd/bgp_network.c @@ -639,7 +639,9 @@ static int bgp_update_address(struct interface *ifp, const union sockunion *dst, struct listnode *node; int common; - sockunion2hostprefix(dst, &d); + if (!sockunion2hostprefix(dst, &d)) + return 1; + sel = NULL; common = -1; |
