summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-events.c
diff options
context:
space:
mode:
Diffstat (limited to 'iptables/xtables-events.c')
-rw-r--r--iptables/xtables-events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/xtables-events.c b/iptables/xtables-events.c
index d8a732e4..4746825e 100644
--- a/iptables/xtables-events.c
+++ b/iptables/xtables-events.c
@@ -75,7 +75,7 @@ static int rule_cb(const struct nlmsghdr *nlh, int type)
goto err_free;
}
- family = nft_rule_attr_get_u8(r, NFT_RULE_ATTR_FAMILY);
+ family = nft_rule_attr_get_u32(r, NFT_RULE_ATTR_FAMILY);
switch (family) {
case AF_INET:
case AF_INET6: