Skip to content

Commit

Permalink
Detect ALE packet info via socket auth flag
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Aug 17, 2023
1 parent 175aab3 commit d970136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pm_kext/src/pm_kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ NTSTATUS driverDeviceControl(__in PDEVICE_OBJECT pDeviceObject, __inout PIRP Irp
Irp->IoStatus.Information = size;
IoCompleteRequest(Irp, IO_NO_INCREMENT);

if(dentry->packet->processID != 0) {
if ((dentry->packet->flags & PM_STATUS_SOCKET_AUTH) > 0) {
// Packet comes from the ALE layer and it's not saved in cache. It's not needed anymore.
portmasterFree(dentry->packet);
}
Expand Down

0 comments on commit d970136

Please sign in to comment.