From: Brent Cook <[email protected]>

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 4e99991..729c94d 100644
--- a/src/apps/s_server.c
+++ b/src/apps/s_server.c
@@ -1769,7 +1769,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.2

Reply via email to