diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2006-02-27 14:32:50 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2006-02-27 14:32:50 +0000 |
commit | 7ba1af5e157112ade7076c9fc5e80951b1787467 (patch) | |
tree | ce1780abae03e1ba14e397d94b5fe816bd4468a1 | |
parent | 2c34bf92313bd512f065236ff04bbdfe5b5a573c (diff) |
add missing break; now filters containing a division can pass
validation; from NetBSD; ok deraadt@
-rw-r--r-- | sys/net/bpf_filter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/bpf_filter.c b/sys/net/bpf_filter.c index 1a00b79fc61..679a03b8c52 100644 --- a/sys/net/bpf_filter.c +++ b/sys/net/bpf_filter.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf_filter.c,v 1.16 2005/12/08 08:49:30 otto Exp $ */ +/* $OpenBSD: bpf_filter.c,v 1.17 2006/02/27 14:32:49 otto Exp $ */ /* $NetBSD: bpf_filter.c,v 1.12 1996/02/13 22:00:00 christos Exp $ */ /* @@ -545,6 +545,7 @@ bpf_validate(f, len) */ if (BPF_RVAL(p->code) == BPF_K && p->k == 0) return 0; + break; default: return 0; } |