summaryrefslogtreecommitdiffstats
path: root/src/libnfnetlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnfnetlink.c')
-rw-r--r--src/libnfnetlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libnfnetlink.c b/src/libnfnetlink.c
index 523115e..8be9306 100644
--- a/src/libnfnetlink.c
+++ b/src/libnfnetlink.c
@@ -914,7 +914,7 @@ int nfnl_check_attributes(const struct nfnl_handle *h,
if (type >= ssh->cb_count)
return -EINVAL;
- min_len = NLMSG_ALIGN(sizeof(struct nfgenmsg));
+ min_len = NLMSG_SPACE(sizeof(struct nfgenmsg));
if (nlh->nlmsg_len < min_len)
return -EINVAL;
#endif