mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-26 23:23:35 +00:00
Merge pull request #1074 from opensourcerouting/ospf6-plist-segv
ospf6d: fix prefix list name SEGV
This commit is contained in:
commit
b9d4bfa71e
@ -643,9 +643,9 @@ void ospf6_area_plist_update(struct prefix_list *plist, int add)
|
||||
const char *name = prefix_list_name(plist);
|
||||
|
||||
for (ALL_LIST_ELEMENTS_RO(ospf6->area_list, n, oa)) {
|
||||
if (!strcmp(PREFIX_NAME_IN(oa), name))
|
||||
if (PREFIX_NAME_IN(oa) && !strcmp(PREFIX_NAME_IN(oa), name))
|
||||
PREFIX_LIST_IN(oa) = add ? plist : NULL;
|
||||
if (!strcmp(PREFIX_NAME_OUT(oa), name))
|
||||
if (PREFIX_NAME_OUT(oa) && !strcmp(PREFIX_NAME_OUT(oa), name))
|
||||
PREFIX_LIST_OUT(oa) = add ? plist : NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user