directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1395269 - /directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/LdapCoreSessionConnection.java
Date Sun, 07 Oct 2012 10:32:41 GMT
Author: elecharny
Date: Sun Oct  7 10:32:41 2012
New Revision: 1395269

URL: http://svn.apache.org/viewvc?rev=1395269&view=rev
Log:
No nedd to unbind when the session is anonymous

Modified:
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/LdapCoreSessionConnection.java

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/LdapCoreSessionConnection.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/LdapCoreSessionConnection.java?rev=1395269&r1=1395268&r2=1395269&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/LdapCoreSessionConnection.java
(original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/LdapCoreSessionConnection.java
Sun Oct  7 10:32:41 2012
@@ -1070,7 +1070,12 @@ public class LdapCoreSessionConnection e
 
         if ( session != null )
         {
-            session.unbind();
+        	// No need to unbind if the session is anonymous
+        	if ( !session.isAnonymous() )
+        	{
+        		session.unbind();
+        	}
+        	
             session = null;
         }
     }



Mime
View raw message