diff options
| -rw-r--r-- | ospf6d/ospf6_area.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ospf6d/ospf6_area.c b/ospf6d/ospf6_area.c index 485937d882..b5584dc86d 100644 --- a/ospf6d/ospf6_area.c +++ b/ospf6d/ospf6_area.c @@ -642,6 +642,9 @@ void ospf6_area_plist_update(struct prefix_list *plist, int add) struct listnode *n; const char *name = prefix_list_name(plist); + if (!ospf6) + return; + for (ALL_LIST_ELEMENTS_RO(ospf6->area_list, n, oa)) { if (PREFIX_NAME_IN(oa) && !strcmp(PREFIX_NAME_IN(oa), name)) PREFIX_LIST_IN(oa) = add ? plist : NULL; |
