mirror of https://github.com/openssl/openssl
apps/mac: avoid need for two ^D when using stdin from a terminal
Fixes #13246 Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15189)
This commit is contained in:
parent
68f3fb0514
commit
29f5727b83
|
@ -150,10 +150,11 @@ opthelp:
|
|||
goto err;
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
while (BIO_pending(in) || !BIO_eof(in)) {
|
||||
i = BIO_read(in, (char *)buf, BUFSIZE);
|
||||
if (i < 0) {
|
||||
BIO_printf(bio_err, "Read Error in '%s'\n", infile);
|
||||
ERR_print_errors(bio_err);
|
||||
goto err;
|
||||
}
|
||||
if (i == 0)
|
||||
|
|
Loading…
Reference in New Issue