patch-2.4.22 linux-2.4.22/net/core/filter.c

Next file: linux-2.4.22/net/core/neighbour.c
Previous file: linux-2.4.22/net/core/dst.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/net/core/filter.c linux-2.4.22/net/core/filter.c
@@ -294,10 +294,9 @@
 				goto load_b;
 
 			case BPF_LDX|BPF_B|BPF_MSH:
-				k = fentry->k;
-				if(k >= 0 && (unsigned int)k >= len)
+				if(fentry->k >= len)
 					return (0);
-				X = (data[k] & 0xf) << 2;
+				X = (data[fentry->k] & 0xf) << 2;
 				continue;
 
 			case BPF_LD|BPF_IMM:

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