diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2013-05-28 10:48:14 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2013-05-28 10:48:14 +0200 |
commit | 924868543c2010f3ef2cfcb7ba6bac5988ab3264 (patch) | |
tree | 7867234b1911bb1d0f70a63a49863bbb564906e9 /proto/ospf/iface.c | |
parent | 9810d055628877232f811d684567e203381e10dc (diff) |
Fixes crash with vlinks.
Diffstat (limited to 'proto/ospf/iface.c')
-rw-r--r-- | proto/ospf/iface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index 9050f7b1..3da8f56c 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 |