On Tue, May 28, 2013 at 12:35:51AM +0200, Martin Kraus wrote:
> On Mon, May 27, 2013 at 09:21:07PM +0200, Martin Kraus wrote:
> > On Mon, May 27, 2013 at 03:52:25PM +0200, Ondrej Zajicek wrote:
> > > On Mon, May 27, 2013 at 11:38:54AM +0200, Martin Kraus wrote:
> > > >
> > > > Hi.
> > > > bird 1.3.10 in debian testing segfaults with ospfv2 virtual link
> > > > enabled.
> > It crashes immediately. core dump attached.
Hello
Thanks for the bugreport, attached patch should fix it.
--
Elen sila lumenn' omentielvo
Ondrej 'SanTiago' Zajicek (email: [email protected])
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
diff -uprN bird-1.3.10-/proto/ospf/iface.c bird-1.3.10/proto/ospf/iface.c
--- bird-1.3.10-/proto/ospf/iface.c 2013-04-29 23:41:58.000000000 +0200
+++ bird-1.3.10/proto/ospf/iface.c 2013-05-28 10:15:34.000000000 +0200
@@ -537,7 +537,7 @@ ospf_iface_new(struct ospf_area *oa, str
#ifdef OSPFv2
ifa->autype = ip->autype;
ifa->passwords = ip->passwords;
- ifa->ptp_netmask = !(addr->flags & IA_PEER);
+ ifa->ptp_netmask = addr ? !(addr->flags & IA_PEER) : 0;
if (ip->ptp_netmask < 2)
ifa->ptp_netmask = ip->ptp_netmask;
#endif