mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-31 00:50:12 +01:00
platform/netlink: fix _genl_parse_getfamily() for checking error code from genlmsg_parse()
Errors are negative numbers. This had no effect however, because currently genlmsg_parse() won't ever return positive values.
This commit is contained in:
parent
98e6abb5a0
commit
106e4ebc13
1 changed files with 1 additions and 1 deletions
|
|
@ -733,7 +733,7 @@ _genl_parse_getfamily (struct nl_msg *msg, void *arg)
|
|||
struct nlmsghdr *nlh = nlmsg_hdr (msg);
|
||||
gint32 *response_data = arg;
|
||||
|
||||
if (genlmsg_parse (nlh, 0, tb, CTRL_ATTR_MAX, ctrl_policy))
|
||||
if (genlmsg_parse (nlh, 0, tb, CTRL_ATTR_MAX, ctrl_policy) < 0)
|
||||
return NL_SKIP;
|
||||
|
||||
if (tb[CTRL_ATTR_FAMILY_ID])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue