PATCH: fix for active ftp for v0.1.18

Christopher J. Reimer reimer@doe.carleton.ca
Mon, 14 Feb 2000 19:43:47 -0500 (EST)


	Sorry, just read the patch submission details, here is the
Changelog entry for the patch (hopefully I will get the bonus point!):

Changelog entry:

2000-02-14 Chris Reimer <chris_reimer@bigfoot.com>

	* ip_nat_ftp.c:  Refresh obsoleted pointers in the help function.


Patch:

--- ip_nat_ftp.c.orig	Tue Jan 11 22:50:00 2000
+++ ip_nat_ftp.c	Mon Feb 14 18:27:23 2000
@@ -237,6 +237,10 @@
 			ret = NF_DROP;
 			goto out;
 		}
+      /* these pointers need to be refreshed since mangle_packet 
+	 just modified their parent pointer (*pskb) C.Reimer */
+		iph = (*pskb)->nh.iph;
+		tcph = (void *)iph + iph->ihl*4;
 	}
 
 	/* Only mangle packets once: original direction in POST_ROUTING