machine: fix if check

Fixes: coverity 1430462
This commit is contained in:
Lennart Poettering 2020-07-16 08:32:23 +02:00
parent f63ef93703
commit 8e32ad9557

View file

@ -268,7 +268,7 @@ static int group_lookup_name(Manager *m, const char *name, gid_t *ret_gid) {
return -ENOMEM; return -ENOMEM;
machine = hashmap_get(m->machines, mn); machine = hashmap_get(m->machines, mn);
if (!mn) if (!machine)
return -ESRCH; return -ESRCH;
if (machine->class != MACHINE_CONTAINER) if (machine->class != MACHINE_CONTAINER)