Assignment could be NULL, check.
This commit is contained in:
parent
22af89167b
commit
8d9ce6838f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user