mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-02 14:40:13 +01:00
dhcp: Fix the DHCP client lookup by gtype
This commit is contained in:
parent
2fa1b7f2a3
commit
3d9d30df58
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ find_client_desc (const char *name, GType gtype)
|
|||
|
||||
if (name && strcmp (desc->name, name) != 0)
|
||||
continue;
|
||||
if (gtype && desc->name != 0)
|
||||
if (gtype && desc->gtype != gtype)
|
||||
continue;
|
||||
return desc;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue