From 42ed9da7b646ce4b05ffafcae805a3018fb6f164 Mon Sep 17 00:00:00 2001 From: hasso Date: Sat, 20 Mar 2004 18:59:59 +0000 Subject: Fix segfault in ospfd - [quagga-dev 980]. --- ospfd/ChangeLog | 11 +++++++++++ ospfd/ospf_vty.c | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'ospfd') diff --git a/ospfd/ChangeLog b/ospfd/ChangeLog index ca9dd04d..249b175d 100644 --- a/ospfd/ChangeLog +++ b/ospfd/ChangeLog @@ -1,3 +1,14 @@ +2004-03-20 Michael Bruening + + * ospf_vty.c: Completed array distribute_str of route types with + addition of "isis". This array must be indexed by + ZEBRA_ROUTE_(SYSTEM|KERNEL|...) defines in zebra.h, and should + be updated with every route type addition. This fix allows + commands redistributing routes from (bgp|isis), like "router ospf + redistribute bgp ...", to be written to terminal, memory, file, + which would otherwise result in a seg fault or, possibly, config + file corruption. Overlooked in import of isisd. + 2004-03-18 Amir Guindehi * ospf_opaque.c: Attempt to correct the incorrect behavior of diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index 5e2c3a2e..14cd9766 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -7142,7 +7142,7 @@ config_write_virtual_link (struct vty *vty, struct ospf *ospf) char *distribute_str[] = { "system", "kernel", "connected", "static", "rip", - "ripng", "ospf", "ospf6", "bgp"}; + "ripng", "ospf", "ospf6", "isis", "bgp"}; int config_write_ospf_redistribute (struct vty *vty, struct ospf *ospf) { -- cgit v1.2.1