mirror of
https://github.com/yuzu-mirror/yuzu
synced 2024-12-19 17:53:08 +00:00
hle: kernel: k_port: Use AcceptSession to ensure SessionList state is correct.
- Fixes a use-after-free, work-around until we fixup session/port management.
This commit is contained in:
parent
b4fc2e52a2
commit
e33ffdc555
1 changed files with 1 additions and 1 deletions
|
@ -56,8 +56,8 @@ ResultCode KPort::EnqueueSession(KServerSession* session) {
|
|||
|
||||
R_UNLESS(state == State::Normal, ResultPortClosed);
|
||||
|
||||
server.GetSessionRequestHandler()->ClientConnected(session);
|
||||
server.EnqueueSession(session);
|
||||
server.GetSessionRequestHandler()->ClientConnected(server.AcceptSession());
|
||||
|
||||
return RESULT_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue