Mailing List Archive

[PATCH] ospf redistribute crash bug
Attached is a patch for a crash bug in ospfd. The patch has been
tested against quagga-0.96.4-20040317 on OpenBSD3.4.

The bug is a seg fault in ospfd upon invoking "write (term|mem)" after
configuring ospfd to redistribute bgp-learned routes with a directive
as in the following ospf config excerpt:

router ospf
ospf router-id 192.168.1.1
redistribute connected metric 70 metric-type 1
+ redistribute bgp metric 70 metric-type 1
network 192.168.1.0/24 area 0.0.0.0

The "redistribute bgp" is successful - routes learned via bgp are
indeed redistributed into ospf, but ospfd seg faults upon a "write
(term|mem|file)" at this point. See patch for details.

Mike
Re: [PATCH] ospf redistribute crash bug [ In reply to ]
Michael Bruening wrote:
> Attached is a patch for a crash bug in ospfd. The patch has been
> tested against quagga-0.96.4-20040317 on OpenBSD3.4.
>
> The bug is a seg fault in ospfd upon invoking "write (term|mem)"
> after configuring ospfd to redistribute bgp-learned routes with a
> directive as in the following ospf config excerpt:
>
> router ospf
> ospf router-id 192.168.1.1
> redistribute connected metric 70 metric-type 1
> + redistribute bgp metric 70 metric-type 1
> network 192.168.1.0/24 area 0.0.0.0
>
> The "redistribute bgp" is successful - routes learned via bgp are
> indeed redistributed into ospf, but ospfd seg faults upon a "write
> (term|mem|file)" at this point. See patch for details.

Thanks. Commited.

--
Hasso Tepper
Elion Enterprises Ltd.
WAN administrator
Re: [PATCH] ospf redistribute crash bug [ In reply to ]
Hasso Tepper wrote:
> Michael Bruening wrote:
> > Attached is a patch for a crash bug in ospfd. The patch has been
> > tested against quagga-0.96.4-20040317 on OpenBSD3.4.
>
> Thanks. Commited.

And similar fixes to bgpd/ripd/ripngd. Sorry about commit without
commit message. I should sleep more.

--
Hasso Tepper
Elion Enterprises Ltd.
WAN administrator