fix warn_unused_result warnings

Reviewed-by: Tim Hudson <tjh@openssl.org>
This commit is contained in:
Dr. Stephen Henson
2014-08-06 21:51:00 +01:00
parent 21d24dd38a
commit 5021f6314e
2 changed files with 5 additions and 3 deletions

View File

@@ -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: