Skip to content

Commit

Permalink
Additional null check for good measure.
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed May 10, 2019
1 parent fe864ea commit 307ea1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packetWin7/npf/npf/Openclos.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ NPF_StartUsingBinding(
)
{
ASSERT(pOpen != NULL);
if (!pOpen) {
return FALSE;
}
// NPF_OpenAdapter() is not called on PASSIVE_LEVEL, so the assertion will fail.
// ASSERT(KeGetCurrentIrql() == PASSIVE_LEVEL);

Expand Down

0 comments on commit 307ea1c

Please sign in to comment.