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.
static int
ospf_iface_stubby(struct ospf_iface_patt *ip, struct ifa *addr)
{
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;
/* a host address */
if (addr->flags & IA_HOST)
return 1;