summaryrefslogtreecommitdiff
path: root/src/network/networkd-manager.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-03-24 00:07:46 +0100
committerTom Gundersen <teg@jklm.no>2014-03-24 16:59:30 +0100
commitd39edfc72f9296078a18014627bf0a2543b60627 (patch)
tree8bc4b060769d43e8e519652dcf2f4ef7cee14733 /src/network/networkd-manager.c
parent3dd215e056ee9ff23175eca66686ff9b7a566dbf (diff)
networkd: netdev - verify that newlink messages has the expected kind
We match 'newlink' messages with expected netdev's based on their names. Now also make sure that the receieved link has the expected kind.
Diffstat (limited to 'src/network/networkd-manager.c')
-rw-r--r--src/network/networkd-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c
index 46815e0fd0..684b1c7ad3 100644
--- a/src/network/networkd-manager.c
+++ b/src/network/networkd-manager.c
@@ -324,7 +324,7 @@ static int manager_rtnl_process_link(sd_rtnl *rtnl, sd_rtnl_message *message, vo
r = netdev_get(m, name, &netdev);
if (r >= 0) {
- r = netdev_set_ifindex(netdev, ifindex);
+ r = netdev_set_ifindex(netdev, message);
if (r < 0)
log_debug("could not set ifindex of netdev '%s' to %d: %s",
name, ifindex, strerror(-r));