diff options
author | Susant Sahani <ssahani@users.noreply.github.com> | 2016-07-15 22:20:51 +0530 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-07-15 18:50:51 +0200 |
commit | 2f27e2c5565e421283718d9bccc6fba52fd3ad21 (patch) | |
tree | 96cb2efddb45792f41d7d2e0ea5d2705c41654fd /src/network | |
parent | 542127ea96de4b0e22fbb0fc872d80406e068e36 (diff) |
networkd: fix for 3692 (#3699)
We should look that the kind is invalid rather than pointer is NULL.
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/networkd-netdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-netdev.c b/src/network/networkd-netdev.c index b192884fd9..e7edc366af 100644 --- a/src/network/networkd-netdev.c +++ b/src/network/networkd-netdev.c @@ -619,7 +619,7 @@ static int netdev_load_one(Manager *manager, const char *filename) { NULL, NULL, NULL, NULL, NULL, NULL) <= 0) return 0; - if (!NETDEV_VTABLE(netdev_raw)) { + if (netdev_raw->kind == _NETDEV_KIND_INVALID) { log_warning("NetDev with invalid Kind configured in %s. Ignoring", filename); return 0; } |