提交 caa7b2ad 编写于 作者: R Richard Levitte

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>
上级 c14b4d6b
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册