mirror of
https://github.com/systemd/systemd.git
synced 2026-08-05 23:50:42 +00:00
networkd: fix for 3692 (#3699)
We should look that the kind is invalid rather than pointer is NULL.
This commit is contained in:
committed by
Lennart Poettering
parent
542127ea96
commit
2f27e2c556
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user