Skip to content

Commit

Permalink
Check that NPF_GetLoopbackOpen returned non-NULL. Fixes nmap/nmap#1591
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed May 10, 2019
1 parent 8f79161 commit fe864ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packetWin7/npf/npf/Loopback.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ NPF_NetworkClassify(

// Send the loopback packets data to the user-mode code.
LoopbackOpen = NPF_GetLoopbackOpen();
if (NPF_StartUsingBinding(LoopbackOpen)) {
if (LoopbackOpen && NPF_StartUsingBinding(LoopbackOpen)) {

/* Lock the group */
NdisAcquireSpinLock(&LoopbackOpen->GroupLock);
Expand Down

0 comments on commit fe864ea

Please sign in to comment.