Skip to content

Commit

Permalink
objmgr don't show bogus handles (#2356)
Browse files Browse the repository at this point in the history
In case of non-admin we don't have object address for handle and thus we
cannot match handles that point to the same object.

Co-authored-by: Johnny Shaw <johnny.shaw@live.com>
  • Loading branch information
ge0rdi and jxy-s authored Jan 3, 2025
1 parent 9cd7155 commit 98ea62f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/ExtendedTools/objprp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1438,7 +1438,7 @@ VOID EtpEnumObjectHandles(
}
}

if (handleInfo->Object == Context->HandleItem->Object || objectNameMatched)
if ((handleInfo->Object && handleInfo->Object == Context->HandleItem->Object) || objectNameMatched)
{
if (useWorkQueue) PhAcquireQueuedLockExclusive(&searchResultsLock);
PhAddItemList(searchResults, handleInfo);
Expand Down

0 comments on commit 98ea62f

Please sign in to comment.