Skip to content

Commit

Permalink
networkd: fix for 3692 (systemd#3699)
Browse files Browse the repository at this point in the history
We should look that the kind is invalid rather than pointer is NULL.
  • Loading branch information
ssahani authored and poettering committed Jul 15, 2016
1 parent 542127e commit 2f27e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/networkd-netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2f27e2c

Please sign in to comment.