Commit caa7b2ad authored by Richard Levitte's avatar Richard Levitte
Browse files

tty_in will never be stderr, so it will always be closed, which means stdin

might get closed...
Reported by Mark Daniel <Mark.Daniel@wasd.vsm.com.au>
parent c14b4d6b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -550,7 +550,7 @@ static int echo_console(UI *ui)

static int close_console(UI *ui)
	{
	if (tty_in != stderr) fclose(tty_in);
	if (tty_in != stdin) fclose(tty_in);
	if (tty_out != stderr) fclose(tty_out);
#ifdef OPENSSL_SYS_VMS
	status = sys$dassgn(channel);