You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by te...@apache.org on 2009/10/06 11:42:34 UTC

svn commit: r822178 - /harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLSessionContextImpl.java

Author: tellison
Date: Tue Oct  6 09:42:33 2009
New Revision: 822178

URL: http://svn.apache.org/viewvc?rev=822178&view=rev
Log:
Fix a typo in removing expired SSL sessions.

Modified:
    harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLSessionContextImpl.java

Modified: harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLSessionContextImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLSessionContextImpl.java?rev=822178&r1=822177&r2=822178&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLSessionContextImpl.java (original)
+++ harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLSessionContextImpl.java Tue Oct  6 09:42:33 2009
@@ -93,11 +93,11 @@
         timeout = seconds * 1000;
 
         // Check timeouts and remove expired sessions
-        SSLSessionImpl ses;
         for (Enumeration<IdKey> en = sessions.keys(); en.hasMoreElements();) {
-            ses = (sessions.get(en.nextElement()));
+            IdKey key = en.nextElement();
+            SSLSessionImpl ses = (sessions.get(key));
             if (!ses.isValid()) {
-                sessions.remove(ses.getId());
+                sessions.remove(key);
             }
         }
     }