Skip to content

Commit 54ac6dd

Browse files
committed
fix: Use correct result variable for RegistrySessions status tracking
When --trackcomputercalls is enabled, the RegistrySessions CSV status was incorrectly checking privSessionResult instead of registrySessionResult, causing it to report the NetWkstaUserEnum status instead of the actual registry enumeration result.
1 parent d53cc04 commit 54ac6dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Runtime/ObjectProcessors.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ await compStatusChannel.Writer.WriteAsync(new CSVComputerStatus {
289289
ret.RegistrySessions = registrySessionResult;
290290
if (_context.Flags.DumpComputerStatus)
291291
await compStatusChannel.Writer.WriteAsync(new CSVComputerStatus {
292-
Status = privSessionResult.Collected ? StatusSuccess : privSessionResult.FailureReason,
292+
Status = registrySessionResult.Collected ? StatusSuccess : registrySessionResult.FailureReason,
293293
Task = "RegistrySessions",
294294
ComputerName = resolvedSearchResult.DisplayName
295295
}, _cancellationToken);

0 commit comments

Comments
 (0)