BIRD crashing when disabled OSPF protocol state is requested
Hi, I think I found a bug in BIRD (tested with versions 1.3.9 and 1.4.0). When OSPF state is requested for a disabled OSPF protocol, the BIRD process segfaults. Steps to reproduce: 1. use this bird.conf: ----cut here---- protocol device { scan time 10; } protocol kernel { persist; } protocol ospf something { disabled; area 0.0.0.0 { interface "dummy*"; }; } ----cut here---- 2. run bird 3. query for protocol state: # birdc show ospf state something 4. BIRD crashes I guess there is some null-pointer dereference in the ospf_sh_state function. Regards, Ondřej Caletka, CESNET
On Thu, Jan 23, 2014 at 03:56:02PM +0100, Ondřej Caletka wrote:
Hi,
I think I found a bug in BIRD (tested with versions 1.3.9 and 1.4.0). When OSPF state is requested for a disabled OSPF protocol, the BIRD process segfaults.
Thanks for bugreport, attached patch should fix it. -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
participants (2)
-
Ondrej Zajicek -
Ondřej Caletka