summaryrefslogtreecommitdiffstats
path: root/contrib/libpcap/bpf/net/bpf_filter.c
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>1998-09-15 19:28:10 +0000
committerfenner <fenner@FreeBSD.org>1998-09-15 19:28:10 +0000
commitca0d84cb8bfc8789fd48ada56322a575c4a1aa68 (patch)
tree5c946e9b84405911032e77b9942372a03521a64f /contrib/libpcap/bpf/net/bpf_filter.c
parent737558aa98d3b86de65ff8e1fd0fe39d5debcde7 (diff)
downloadFreeBSD-src-ca0d84cb8bfc8789fd48ada56322a575c4a1aa68.zip
FreeBSD-src-ca0d84cb8bfc8789fd48ada56322a575c4a1aa68.tar.gz
Virgin import of LBL libpcap v0.4
Diffstat (limited to 'contrib/libpcap/bpf/net/bpf_filter.c')
-rw-r--r--contrib/libpcap/bpf/net/bpf_filter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/libpcap/bpf/net/bpf_filter.c b/contrib/libpcap/bpf/net/bpf_filter.c
index 9afb10b..a588019 100644
--- a/contrib/libpcap/bpf/net/bpf_filter.c
+++ b/contrib/libpcap/bpf/net/bpf_filter.c
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996
+ * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
* The Regents of the University of California. All rights reserved.
*
* This code is derived from the Stanford/CMU enet packet filter,
@@ -40,7 +40,7 @@
#if !(defined(lint) || defined(KERNEL))
static const char rcsid[] =
- "@(#) $Header: bpf_filter.c,v 1.31 96/12/11 20:18:39 leres Exp $ (LBL)";
+ "@(#) $Header: bpf_filter.c,v 1.33 97/04/26 13:37:18 leres Exp $ (LBL)";
#endif
#include <sys/param.h>
@@ -507,7 +507,7 @@ bpf_validate(f, len)
register int from = i + 1;
if (BPF_OP(p->code) == BPF_JA) {
- if (from + p->k >= len)
+ if (from + p->k >= (unsigned)len)
return 0;
}
else if (from + p->jt >= len || from + p->jf >= len)
OpenPOWER on IntegriCloud