patch-2.4.20 linux-2.4.20/net/ipv4/ip_options.c

Next file: linux-2.4.20/net/ipv4/ip_output.c
Previous file: linux-2.4.20/net/ipv4/ip_gre.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/net/ipv4/ip_options.c linux-2.4.20/net/ipv4/ip_options.c
@@ -266,7 +266,7 @@
 	for (l = opt->optlen; l > 0; ) {
 		switch (*optptr) {
 		      case IPOPT_END:
-			for (optptr++, l--; l>0; l--) {
+			for (optptr++, l--; l>0; optptr++, l--) {
 				if (*optptr != IPOPT_END) {
 					*optptr = IPOPT_END;
 					opt->is_changed = 1;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)