hi,


in net/bpf.c, bpfdetach(), stuct bpf_if *bp is used in a for loop, that,
if not terminated by break before, leaves bp == NULL.
evaluating (bp->bif_ifp == NULL) two lines later will cause a NULL pointer
dereference, resulting in trap 12.
please apply the attached patch.


best,
  christian

-- 
"Sorry, no defects found. Please try a different search"
                          [http://www.cisco.com/support/bugtools/bugtool.shtml]

----------------------------

Index: bpf.c
===================================================================
RCS file: /usr/cvs/src/sys/net/bpf.c,v
retrieving revision 1.80
diff -r1.80 bpf.c
1267c1267
<       if (bp->bif_ifp == NULL) {
---
>       if (bp == NULL || bp->bif_ifp == NULL) {


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to