directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r782060 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/security/TlsKeyGenerator.java
Date Fri, 05 Jun 2009 16:48:40 GMT
Author: seelmann
Date: Fri Jun  5 16:48:40 2009
New Revision: 782060

URL: http://svn.apache.org/viewvc?rev=782060&view=rev
Log:
Fixed integer overflow

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/security/TlsKeyGenerator.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/security/TlsKeyGenerator.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/security/TlsKeyGenerator.java?rev=782060&r1=782059&r2=782060&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/security/TlsKeyGenerator.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/security/TlsKeyGenerator.java
Fri Jun  5 16:48:40 2009
@@ -89,7 +89,7 @@
      *    http://www.apache.org/licenses/exports
      */ 
     private static final int KEY_SIZE = 512;
-    private static final long YEAR_MILLIS = 365*24*3600*1000;
+    private static final long YEAR_MILLIS = 365L * 24L * 3600L * 1000L;
     
 
     static



Mime
View raw message