Fixes crash with vlinks.
This commit is contained in:
parent
9810d05562
commit
924868543c
1 changed files with 1 additions and 1 deletions
|
@ -537,7 +537,7 @@ ospf_iface_new(struct ospf_area *oa, struct ifa *addr, struct ospf_iface_patt *i
|
||||||
#ifdef OSPFv2
|
#ifdef OSPFv2
|
||||||
ifa->autype = ip->autype;
|
ifa->autype = ip->autype;
|
||||||
ifa->passwords = ip->passwords;
|
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)
|
if (ip->ptp_netmask < 2)
|
||||||
ifa->ptp_netmask = ip->ptp_netmask;
|
ifa->ptp_netmask = ip->ptp_netmask;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue