write() warns if its return value is unchecked. Replace with a BIO_write
like all of the surrounding code uses anyway.
---
src/apps/s_server.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/apps/s_server.c b/src/apps/s_server.c
index 51f6b47..fb28489 100644
--- a/src/apps/s_server.c
+++ b/src/apps/s_server.c
@@ -1767,7 +1767,7 @@ sv_body(char *hostname, int s, unsigned char *context)
i = SSL_read(con, (char *) buf, bufsize);
switch (SSL_get_error(con, i)) {
case SSL_ERROR_NONE:
- write(fileno(stdout), buf,
+ BIO_write(bio_s_out, buf,
(unsigned int) i);
if (SSL_pending(con))
goto again;
--
1.9.3