aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bpf/net/bpf_filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bpf/net/bpf_filter.c b/bpf/net/bpf_filter.c
index 9abbd540..c6660877 100644
--- a/bpf/net/bpf_filter.c
+++ b/bpf/net/bpf_filter.c
@@ -633,7 +633,7 @@ bpf_validate(f, len)
return 0;
#endif
- for (i = 0; i < len; ++i) {
+ for (i = 0; i < (u_int)len; ++i) {
p = &f[i];
switch (BPF_CLASS(p->code)) {
/*