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>
This commit is contained in:
Richard Levitte 2003-01-13 13:15:16 +00:00
parent c14b4d6b38
commit caa7b2ad4f

View file

@ -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);