Author: rjung Date: Thu Jun 14 14:38:33 2012 New Revision: 1350270 URL: http://svn.apache.org/viewvc?rev=1350270&view=rev Log: Return error if BIO_flush() didn't work. Fixes compiler warning about unused return value.
Modified: tomcat/native/branches/1.1.x/native/src/ssl.c Modified: tomcat/native/branches/1.1.x/native/src/ssl.c URL: http://svn.apache.org/viewvc/tomcat/native/branches/1.1.x/native/src/ssl.c?rev=1350270&r1=1350269&r2=1350270&view=diff ============================================================================== --- tomcat/native/branches/1.1.x/native/src/ssl.c (original) +++ tomcat/native/branches/1.1.x/native/src/ssl.c Thu Jun 14 14:38:33 2012 @@ -466,9 +466,9 @@ static int ssl_rand_make(const char *fil BIO_write(out, buf, len); num -= len; } - BIO_flush(out); + r = BIO_flush(out); BIO_free_all(out); - return 1; + return r > 0 ? 1 : 0; } TCN_IMPLEMENT_CALL(jint, SSL, initialize)(TCN_STDARGS, jstring engine) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org