directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1684560 - /directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/protocol/codec/MinaKerberosDecoder.java
Date Wed, 10 Jun 2015 04:49:11 GMT
Author: kayyagari
Date: Wed Jun 10 04:49:10 2015
New Revision: 1684560

URL: http://svn.apache.org/r1684560
Log:
clear the session attribute after decoding (DIRSERVER-2071)

Modified:
    directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/protocol/codec/MinaKerberosDecoder.java

Modified: directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/protocol/codec/MinaKerberosDecoder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/protocol/codec/MinaKerberosDecoder.java?rev=1684560&r1=1684559&r2=1684560&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/protocol/codec/MinaKerberosDecoder.java
(original)
+++ directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/protocol/codec/MinaKerberosDecoder.java
Wed Jun 10 04:49:10 2015
@@ -106,6 +106,8 @@ public class MinaKerberosDecoder extends
                     
                     out.write( kerberosMessageContainer.getMessage() );
                     
+                    session.removeAttribute( KERBEROS_MESSAGE_CONTAINER );
+                    
                     return true;
                 }
             }
@@ -116,10 +118,6 @@ public class MinaKerberosDecoder extends
                 kerberosMessageContainer.clean();
                 throw de;
             }
-            finally
-            {
-                session.removeAttribute( KERBEROS_MESSAGE_CONTAINER );
-            }
        }
         
        return false;



Mime
View raw message