diff options
| author | Russ White <russ@riw.us> | 2021-10-19 19:15:40 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-19 19:15:40 -0400 |
| commit | ed131d8b748c1d0a47736c4e549e15deb180b6f9 (patch) | |
| tree | 64cc873783b8648b5929780a720da18146258b49 /ospf6d/ospf6_interface.c | |
| parent | 32c8a3c2ae48d85bd855b0ebb55c426121be843a (diff) | |
| parent | 343e16cec54cc8c6e5df389e3a20efd98e450ff1 (diff) | |
Merge pull request #9752 from opensourcerouting/ospf6d-nssa-ranges
ospf6d: add support for NSSA Type-7 address ranges
Diffstat (limited to 'ospf6d/ospf6_interface.c')
| -rw-r--r-- | ospf6d/ospf6_interface.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index 9d73740819..64992bbcee 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -1241,7 +1241,6 @@ struct in6_addr *ospf6_interface_get_global_address(struct interface *ifp) { struct listnode *n; struct connected *c; - struct in6_addr *l = (struct in6_addr *)NULL; /* for each connected address */ for (ALL_LIST_ELEMENTS_RO(ifp->connected, n, c)) { @@ -1250,9 +1249,10 @@ struct in6_addr *ospf6_interface_get_global_address(struct interface *ifp) continue; if (!IN6_IS_ADDR_LINKLOCAL(&c->address->u.prefix6)) - l = &c->address->u.prefix6; + return &c->address->u.prefix6; } - return l; + + return NULL; } |
