always use fdin

This commit is contained in:
christos 2020-03-22 19:56:07 +00:00
parent 0f132f479d
commit 314235bf3d
2 changed files with 2 additions and 2 deletions

View File

@ -2804,7 +2804,7 @@ int s_client_main(int argc, char **argv)
* set the flag so we exit.
*/
if (read_tty && !at_eof)
openssl_fdset(fileno_stdin(), &readfds);
openssl_fdset(fdin, &readfds);
#if !defined(OPENSSL_SYS_VMS)
if (write_tty)
openssl_fdset(fdout, &writefds);

View File

@ -2423,7 +2423,7 @@ static int sv_body(int s, int stype, int prot, unsigned char *context)
}
FD_ZERO(&readfds);
#if !defined(OPENSSL_SYS_WINDOWS) && !defined(OPENSSL_SYS_MSDOS)
openssl_fdset(fileno_stdin(), &readfds);
openssl_fdset(fdin, &readfds);
#endif
openssl_fdset(s, &readfds);
/*