From: Jon Date: Thu, 12 Feb 2009 01:22:03 +0000 (-0800) Subject: [ospf6d] Fix ospf6d crash if range defined twice X-Git-Tag: frr-2.0-rc1~2315 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=86f9e5a7f3a80d6df13a9750d2148693daa14c8d;p=matthieu%2Ffrr.git [ospf6d] Fix ospf6d crash if range defined twice ospf6d will crash if the same range is defined twice. There was no check if the same range had previously been defined, thereby causing a later assert to fail. --- diff --git a/ospf6d/ospf6_area.c b/ospf6d/ospf6_area.c index 3bfc0cae5f..3c999bbcc9 100644 --- a/ospf6d/ospf6_area.c +++ b/ospf6d/ospf6_area.c @@ -353,6 +353,12 @@ DEFUN (area_range, UNSET_FLAG (range->flag, OSPF6_ROUTE_DO_NOT_ADVERTISE); } + if (range->rnode) + { + vty_out (vty, "Range already defined: %s%s", argv[-1], VNL); + return CMD_WARNING; + } + ospf6_route_add (range, oa->range_table); return CMD_SUCCESS; }