From d833bed181469876c4182156682ca9e5ebd9bd9a Mon Sep 17 00:00:00 2001 From: Kevin Cernekee Date: Wed, 31 Aug 2016 21:27:54 -0700 Subject: conntrackd: cthelper: ftp: Fix debug print matchoff is relative to dataoff, i.e. matchoff=0 (as utilized by nfq_tcp_mangle_ipv4()) points to the first byte of the TCP payload. Signed-off-by: Kevin Cernekee Signed-off-by: Pablo Neira Ayuso --- src/helpers/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/helpers') diff --git a/src/helpers/ftp.c b/src/helpers/ftp.c index 3da6e56..27ab5eb 100644 --- a/src/helpers/ftp.c +++ b/src/helpers/ftp.c @@ -511,7 +511,7 @@ ftp_helper_cb(struct pkt_buff *pkt, uint32_t protoff, goto out_update_nl; pr_debug("conntrack_ftp: match `%.*s' (%u bytes at %u)\n", - matchlen, pktb_network_header(pkt) + matchoff, + matchlen, pktb_network_header(pkt) + dataoff + matchoff, matchlen, ntohl(th->seq) + matchoff); /* We refer to the reverse direction ("!dir") tuples here, -- cgit v1.2.3