diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2020-08-21 02:25:24 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2020-08-26 17:21:27 +0200 |
commit | 0af5e414d1b1a6a89aee261f3fea9e32310714ea (patch) | |
tree | 7ea1b6f57682527de6da367ed889617af05587f2 /isisd/isis_sr.c | |
parent | isisd: make vid2string() fully reentrant (diff) | |
download | frr-0af5e414d1b1a6a89aee261f3fea9e32310714ea.tar.xz frr-0af5e414d1b1a6a89aee261f3fea9e32310714ea.zip |
isisd: don't add Adj-SIDs when an IP address is missing
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'isisd/isis_sr.c')
-rw-r--r-- | isisd/isis_sr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/isisd/isis_sr.c b/isisd/isis_sr.c index bdbdc30b4..5f6335c7d 100644 --- a/isisd/isis_sr.c +++ b/isisd/isis_sr.c @@ -1521,13 +1521,13 @@ static void sr_adj_sid_add_single(struct isis_adjacency *adj, int family, /* Determine nexthop IP address */ switch (family) { case AF_INET: - if (!circuit->ip_router) + if (!circuit->ip_router || !adj->ipv4_address_count) return; nexthop.ipv4 = adj->ipv4_addresses[0]; break; case AF_INET6: - if (!circuit->ipv6_router) + if (!circuit->ipv6_router || !adj->ipv6_address_count) return; nexthop.ipv6 = adj->ipv6_addresses[0]; |