bpf(4): Fix the division by zero check in bpf_validate().
authorSascha Wildner <saw@online.de>
Fri, 30 Apr 2010 10:03:52 +0000 (12:03 +0200)
committerSascha Wildner <saw@online.de>
Fri, 30 Apr 2010 10:03:52 +0000 (12:03 +0200)
commit3361ad4a4e7a29e045f839fbd155dbb34030f7d7
tree90c364b3cae8b7a38df205dd6f764f8b2afbc921
parent45758e38420d8432ef186f03c126262d4becd1af
bpf(4): Fix the division by zero check in bpf_validate().

BPF_RVAL() was being used where BPF_SRC() would have been correct.

Reported-by: Guy Harris <guy@alum.mit.edu>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1748>
sys/net/bpf_filter.c