mirror of
https://github.com/systemd/systemd.git
synced 2025-02-28 05:57:33 +03:00
machine: fix if check
Fixes: coverity 1430462
This commit is contained in:
parent
f63ef93703
commit
8e32ad9557
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user