summaryrefslogtreecommitdiffstats
path: root/ospf6d
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-08-29 21:08:55 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-08-29 21:08:55 +0200
commitff6bda17b53766bf7209ea5793c89f4f20d3dc9a (patch)
tree6915b766e91105191c54ad658a73fd369b87b179 /ospf6d
parentMerge pull request #998 from mkanjari/dev-master (diff)
downloadfrr-ff6bda17b53766bf7209ea5793c89f4f20d3dc9a.tar.xz
frr-ff6bda17b53766bf7209ea5793c89f4f20d3dc9a.zip
ospf6d: fix prefix list name SEGV
Oops, I tested this with prefix lists configured and failed to notice it blows up when nothing is set... Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospf6d')
-rw-r--r--ospf6d/ospf6_area.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ospf6d/ospf6_area.c b/ospf6d/ospf6_area.c
index 649d7a100..485937d88 100644
--- a/ospf6d/ospf6_area.c
+++ b/ospf6d/ospf6_area.c
@@ -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;
}
}