]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
OSPF: Fix reconfiguration of vlinks
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Mon, 10 Dec 2018 01:05:21 +0000 (02:05 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Mon, 10 Dec 2018 01:08:52 +0000 (02:08 +0100)
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.

proto/ospf/iface.c

index 6e3a48b3a81a1b6129be0dd659490fd0e693d82f..feff0f436f6b0dcb8a6f5659b4f833f423d24f7e 100644 (file)
@@ -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;