mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Fixes crash with vlinks.
This commit is contained in:
parent
9810d05562
commit
924868543c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user