Fix wrong nfnetlink header size
PATCH 2/3 Fix wrong nfnetlink header size
Fix wrong size of the netfilter netlink header. This implicitely fixes an alignment issue when nfnl_handle_packet is called as well.
Signature · 1 line
Pablo
[LIBNFNETLINK] Fix wrong nfnetlink header size
Fix wrong size of the netfilter netlink header. This implicitely fixes an alignment issue when nfnl_handle_packet is called as well.
src/libnfnetlink.c +1 -1
@@ -914,7 +914,7 @@ int nfnl_check_attributes(const struct nif (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
Harald Welte
AppliedQuoted 4 lines · Pablo Neira Ayuso
[LIBNFNETLINK] Fix wrong nfnetlink header size
Fix wrong size of the netfilter netlink header. This implicitely fixes an alignment issue when
nfnl_handle_packetis called as well.
thanks, applied, too.
Signature · 5 lines
- Harald Welte <[email protected]> http://netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie