summaryrefslogtreecommitdiffhomepage
path: root/alias.c
diff options
context:
space:
mode:
Diffstat (limited to 'alias.c')
-rw-r--r--alias.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/alias.c b/alias.c
index 6b938ca..56420c7 100644
--- a/alias.c
+++ b/alias.c
@@ -61,8 +61,10 @@ static void alias_set_device(struct alias_device *alias, struct device *dev)
device_set_ifindex(&alias->dev, dev->ifindex);
device_set_ifname(&alias->dev, dev->ifname);
device_add_user(&alias->dep, dev);
- } else
+ } else {
device_set_ifname(&alias->dev, "");
+ device_set_link(&alias->dev, false);
+ }
}
static int