diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2014-08-06 21:51:00 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2014-08-06 21:59:15 +0100 |
commit | 5021f6314e6486ffe08bfd8c1e075a90528a3d4a (patch) | |
tree | 6bbb92be340edfef60c8830bfc5d95a1dde9d4ed /apps | |
parent | 21d24dd38ab2a8b814d28b15dbf620eb29e924b1 (diff) | |
download | openssl-5021f6314e6486ffe08bfd8c1e075a90528a3d4a.tar.gz |
fix warn_unused_result warnings
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/s_server.c | 6 |
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: |