tsshd: fix double exit with different exit codes

Signed-off-by: Joonas Loppi <joonas@joonas.fi>
pull/3393/head
Joonas Loppi 3 years ago committed by Brad Fitzpatrick
parent 283ae702c1
commit a3b709f0c4

@ -157,8 +157,9 @@ func handleSSH(s ssh.Session) {
cmd.Process.Kill()
if err := cmd.Wait(); err != nil {
s.Exit(1)
} else {
s.Exit(0)
}
s.Exit(0)
return
}

Loading…
Cancel
Save