mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
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:
parent
c14b4d6b38
commit
caa7b2ad4f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user