diff options
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/bpf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c index a27cd3b..0b6f5e8 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -1360,7 +1360,7 @@ bpfdetach(ifp) } /* Interface wasn't attached */ - if (bp->bif_ifp == NULL) { + if ((bp == NULL) || (bp->bif_ifp == NULL)) { mtx_unlock(&bpf_mtx); printf("bpfdetach: %s%d was not attached\n", ifp->if_name, ifp->if_unit); |