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
1 changed files with 1 additions and 1 deletions

View File

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