diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2017-08-29 21:08:55 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2017-08-29 21:08:55 +0200 |
commit | ff6bda17b53766bf7209ea5793c89f4f20d3dc9a (patch) | |
tree | 6915b766e91105191c54ad658a73fd369b87b179 /ospf6d | |
parent | Merge pull request #998 from mkanjari/dev-master (diff) | |
download | frr-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.c | 4 |
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; } } |