tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r1350270 - /tomcat/native/branches/1.1.x/native/src/ssl.c
Date Thu, 14 Jun 2012 14:38:33 GMT
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message