1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 15:48:06 -05:00

SshProxy: reset trust status after setup completes.

The next backend that tries to use the connection we're now proxying
is going to expect the seat's trust status to be in trusted mode,
because that's how things normally start up when a backend is
initialised. So we should set it back to that state before handing on
to that backend.
This commit is contained in:
Simon Tatham 2021-09-16 17:21:03 +01:00
parent 5ca0a75636
commit adf6b698e4

View File

@ -251,6 +251,10 @@ static void try_send_ssh_to_socket(void *ctx)
static void sshproxy_notify_session_started(Seat *seat)
{
SshProxy *sp = container_of(seat, SshProxy, seat);
if (sp->clientseat)
seat_set_trust_status(sp->clientseat, true);
plug_log(sp->plug, PLUGLOG_CONNECT_SUCCESS, sp->addr, sp->port, NULL, 0);
}