* [PATCH libnetfilter_conntrack] conntrack: fix parsing payload len
@ 2014-01-23 11:40 Ken-ichirou MATSUZAWA
2014-01-29 19:24 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: Ken-ichirou MATSUZAWA @ 2014-01-23 11:40 UTC (permalink / raw)
To: Pablo Neira Ayuso, netfilter-devel
Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
---
src/conntrack/parse_mnl.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/conntrack/parse_mnl.c b/src/conntrack/parse_mnl.c
index 1557ff0..98b680b 100644
--- a/src/conntrack/parse_mnl.c
+++ b/src/conntrack/parse_mnl.c
@@ -968,5 +968,6 @@ int nfct_nlmsg_parse(const struct nlmsghdr *nlh, struct nf_conntrack *ct)
struct nfgenmsg *nfhdr = mnl_nlmsg_get_payload(nlh);
return nfct_payload_parse((uint8_t *)nfhdr + sizeof(struct nfgenmsg),
- nlh->nlmsg_len, nfhdr->nfgen_family, ct);
+ mnl_nlmsg_get_payload_len(nlh) - sizeof(struct nfgenmsg),
+ nfhdr->nfgen_family, ct);
}
--
1.8.5.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH libnetfilter_conntrack] conntrack: fix parsing payload len
2014-01-23 11:40 [PATCH libnetfilter_conntrack] conntrack: fix parsing payload len Ken-ichirou MATSUZAWA
@ 2014-01-29 19:24 ` Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2014-01-29 19:24 UTC (permalink / raw)
To: Ken-ichirou MATSUZAWA; +Cc: netfilter-devel
Applied, thanks Ken-ichirou.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-29 19:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-23 11:40 [PATCH libnetfilter_conntrack] conntrack: fix parsing payload len Ken-ichirou MATSUZAWA
2014-01-29 19:24 ` Pablo Neira Ayuso
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.