dhcp: Fix the DHCP client lookup by gtype

This commit is contained in:
Lubomir Rintel
2014-11-14 10:42:42 +01:00
parent 2fa1b7f2a3
commit 3d9d30df58

View File

@@ -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;
}