Skip to content

Commit

Permalink
fix(xrdp_process_child_entrypoint): manually set trans->status to TRA…
Browse files Browse the repository at this point in the history
…NS_STATUS_UP
  • Loading branch information
unstabler committed Mar 18, 2023
1 parent 4a095a4 commit b43ab3f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xrdp/xrdp_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,12 +321,15 @@ xrdp_process_child_entrypoint(struct xrdp_listen *owner, int socket_fd)
struct xrdp_process *process;

server_trans = trans_create(TRANS_MODE_TCP, 16, 16);
server_trans->status = TRANS_STATUS_UP;
server_trans->sck = socket_fd;

process = xrdp_process_create(owner, 0);
process->server_trans = server_trans;

xrdp_process_main_loop(process);

xrdp_process_delete(process);
g_set_term(1);
return 0;
}

0 comments on commit b43ab3f

Please sign in to comment.