diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2018-12-10 02:05:21 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2018-12-10 02:08:52 +0100 |
commit | 8c0b12ac86d9075b76a3906d0c25ba9bc73bbb2c (patch) | |
tree | f8c3bb35b94e19b7c04de7e9a64099c84422c9be | |
parent | ea59172cdec564af781181c9c3e388c59178b49e (diff) |
OSPF: Fix reconfiguration of vlinks
Fix crash during reconfiguration of OSPF config with vlinks. When vlink
is reconfigured, a generic iface-reconfiguration code is used, which in
one place supposes that it is running on a regular iface.
Thanks to Cybertinus for a bugreport.
-rw-r--r-- | proto/ospf/iface.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index 6e3a48b3..feff0f43 100644 --- a/proto/ospf/iface.c +++ b/proto/ospf/iface.c @@ -524,6 +524,10 @@ add_nbma_node(struct ospf_iface *ifa, struct nbma_node *src, int found) static int ospf_iface_stubby(struct ospf_iface_patt *ip, struct ifa *addr) { + /* vlink cannot be stub */ + if (ip->type == OSPF_IT_VLINK) + return 0; + /* a host address */ if (addr->flags & IA_HOST) return 1; |