Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[V7] backport 10792 #10876

Merged
merged 2 commits into from
Mar 10, 2022
Merged

[V7] backport 10792 #10876

merged 2 commits into from
Mar 10, 2022

Conversation

rosstimothy
Copy link
Contributor

Backports #10792

@github-actions github-actions bot requested review from jakule and r0mant March 4, 2022 22:12
* Prevent panic caused by nil session recorder

In startInteractive the session recorder was being assigned the
return value of events.NewAuditWriter, even if it returned an
error. This causes problems because the nil *events.AuditWriter
that is returned in this case ends up being stored in recorder as
a non-nil events.StreamWriter. So when the session tries to close
the check on recorder != nil is mistakenly true and recorder.Close
is called on a nil *events.AuditWriter - which results in a panic.
@rosstimothy rosstimothy merged commit 7771cc2 into branch/v7 Mar 10, 2022
@rosstimothy rosstimothy deleted the v7-backport-10792 branch March 10, 2022 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants