[netfilter-cvslog] r6468 - trunk/libnfnetlink/src
laforge at netfilter.org
laforge at netfilter.org
Mon Feb 13 12:45:52 CET 2006
Author: laforge at netfilter.org
Date: 2006-02-13 12:45:52 +0100 (Mon, 13 Feb 2006)
New Revision: 6468
Modified:
trunk/libnfnetlink/src/libnfnetlink.c
Log:
Fix wrong size of the netfilter netlink header. This implicitely fixes an
alignment issue when nfnl_handle_packet is called as well. (Pablo Neira)
Modified: trunk/libnfnetlink/src/libnfnetlink.c
===================================================================
--- trunk/libnfnetlink/src/libnfnetlink.c 2006-02-13 11:44:59 UTC (rev 6467)
+++ trunk/libnfnetlink/src/libnfnetlink.c 2006-02-13 11:45:52 UTC (rev 6468)
@@ -914,7 +914,7 @@
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
More information about the netfilter-cvslog
mailing list