]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes crash with vlinks.
authorOndrej Zajicek <santiago@crfreenet.org>
Tue, 28 May 2013 08:48:14 +0000 (10:48 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Tue, 28 May 2013 08:48:14 +0000 (10:48 +0200)
proto/ospf/iface.c

index 9050f7b10f77ed9f21a151a1f219119671aef406..3da8f56cb1b9c4acf73b1b9e289364e5e5b8cbc3 100644 (file)
@@ -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