summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2015-11-23 14:18:33 +0300
committerDmitry Kozlov <xeb@mail.ru>2015-11-23 14:18:33 +0300
commit9b79c7978796c0be8e443863bc277390353e5eaa (patch)
treed21a754060855444780c8637a4788963b38cd5a1
parent44ba310b79265b0417bd236b4a661801e9d4f892 (diff)
downloadaccel-ppp-9b79c7978796c0be8e443863bc277390353e5eaa.tar.gz
accel-ppp-9b79c7978796c0be8e443863bc277390353e5eaa.zip
libnetlink: genl: fix length of CTRL_ATTR_FAMILY_ID attribute
-rw-r--r--accel-pppd/libnetlink/genl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/libnetlink/genl.c b/accel-pppd/libnetlink/genl.c
index 68405ba1..b8cb2fcb 100644
--- a/accel-pppd/libnetlink/genl.c
+++ b/accel-pppd/libnetlink/genl.c
@@ -85,7 +85,7 @@ int __export genl_resolve_mcg(const char *family, const char *name, int *fam_id)
goto out;
if (fam_id)
- *fam_id = *(uint32_t *)(RTA_DATA(tb[CTRL_ATTR_FAMILY_ID]));
+ *fam_id = *(uint16_t *)(RTA_DATA(tb[CTRL_ATTR_FAMILY_ID]));
parse_rtattr_nested(tb2, GENL_MAX_FAM_GRPS, tb[CTRL_ATTR_MCAST_GROUPS]);