From adf6b698e4867fd229e956eff277a53b4021738e Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 16 Sep 2021 17:21:03 +0100 Subject: [PATCH] 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. --- sshproxy.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sshproxy.c b/sshproxy.c index 20815629..aea19cf6 100644 --- a/sshproxy.c +++ b/sshproxy.c @@ -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); }