From: Ondrej Zajicek Date: Tue, 28 May 2013 08:48:14 +0000 (+0200) Subject: Fixes crash with vlinks. X-Git-Tag: v1.3.11~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=924868543c2010f3ef2cfcb7ba6bac5988ab3264;p=thirdparty%2Fbird.git Fixes crash with vlinks. --- diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index 9050f7b10..3da8f56cb 100644 --- a/proto/ospf/iface.c +++ b/proto/ospf/iface.c @@ -537,7 +537,7 @@ ospf_iface_new(struct ospf_area *oa, struct ifa *addr, struct ospf_iface_patt *i #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