From 78ac090fbe036f786bce979a90e7fa9989d32663 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 17 Jul 2003 00:51:15 -0700 Subject: [NETFILTER]: Fix ip_nat_ftp in 2.6.0-test1. This is a 2.6 only fix for the FTP NAT helper code. The patch below (by Martin Josefsson) also closes Bug 933 in the kernel bug tracker. The bug was introduced while making the helper compliant to the recently introduced support for nonlinear skbs in netfilter. --- net/ipv4/netfilter/ip_nat_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net') diff --git a/net/ipv4/netfilter/ip_nat_helper.c b/net/ipv4/netfilter/ip_nat_helper.c index bea707e946e3..6721c9bfd180 100644 --- a/net/ipv4/netfilter/ip_nat_helper.c +++ b/net/ipv4/netfilter/ip_nat_helper.c @@ -191,7 +191,7 @@ ip_nat_mangle_tcp_packet(struct sk_buff **pskb, csum_partial((char *)tcph, tcph->doff*4, (*pskb)->csum)); adjust_tcp_sequence(ntohl(tcph->seq), - (int)match_len - (int)rep_len, + (int)rep_len - (int)match_len, ct, ctinfo); return 1; } -- cgit v1.2.3