summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2014-08-06 21:51:00 +0100
committerDr. Stephen Henson <steve@openssl.org>2014-08-06 21:59:15 +0100
commit5021f6314e6486ffe08bfd8c1e075a90528a3d4a (patch)
tree6bbb92be340edfef60c8830bfc5d95a1dde9d4ed /apps
parent21d24dd38ab2a8b814d28b15dbf620eb29e924b1 (diff)
fix warn_unused_result warnings
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'apps')
-rw-r--r--apps/s_server.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/s_server.c b/apps/s_server.c
index fe33b41f65..a6af637bcf 100644
--- a/apps/s_server.c
+++ b/apps/s_server.c
@@ -1930,8 +1930,10 @@ again:
#ifdef CHARSET_EBCDIC
ascii2ebcdic(buf,buf,i);
#endif
- write(fileno(stdout),buf,
- (unsigned int)i);
+ if (write(fileno(stdout),buf,
+ (unsigned int)i) != i)
+ goto err;
+
if (SSL_pending(con)) goto again;
break;
case SSL_ERROR_WANT_WRITE: