From: Richard Levitte Date: Mon, 13 Jan 2003 13:15:16 +0000 (+0000) Subject: tty_in will never be stderr, so it will always be closed, which means stdin X-Git-Tag: OpenSSL_0_9_7a~64^2~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=caa7b2ad4f0f3ef895122511725c7e2101d87dfb;p=openssl tty_in will never be stderr, so it will always be closed, which means stdin might get closed... Reported by Mark Daniel --- diff --git a/crypto/ui/ui_openssl.c b/crypto/ui/ui_openssl.c index e1a872ef7c..75318d48a1 100644 --- a/crypto/ui/ui_openssl.c +++ b/crypto/ui/ui_openssl.c @@ -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);