mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-13 13:41:27 +00:00
sd-rtnl: types - fix check for unsupported type
Spotted by Thomas H.P. Andersen <phomes@gmail.com>
This commit is contained in:
@@ -524,8 +524,7 @@ int type_system_union_protocol_get_type_system(const NLTypeSystemUnion *type_sys
|
||||
return -ENOTSUP;
|
||||
|
||||
type_system = &type_system_union->type_systems[protocol];
|
||||
|
||||
if (!type_system)
|
||||
if (type_system->max == 0)
|
||||
return -ENOTSUP;
|
||||
|
||||
*ret = type_system;
|
||||
|
||||
Reference in New Issue
Block a user