directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r433057 - /directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/name/RdnParser.java
Date Sun, 20 Aug 2006 21:47:36 GMT
Author: elecharny
Date: Sun Aug 20 14:47:35 2006
New Revision: 433057

URL: http://svn.apache.org/viewvc?rev=433057&view=rev
Log:
Forgotten to reinitialize the length to 0, leading to a bug when
parsing multi RDNs which are OIDs

Modified:
    directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/name/RdnParser.java

Modified: directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/name/RdnParser.java
URL: http://svn.apache.org/viewvc/directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/name/RdnParser.java?rev=433057&r1=433056&r2=433057&view=diff
==============================================================================
--- directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/name/RdnParser.java
(original)
+++ directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/name/RdnParser.java
Sun Aug 20 14:47:35 2006
@@ -578,6 +578,7 @@
         StringTools.trimLeft( dn, pos );
 
         pos.end = pos.start;
+        pos.length = 0;
 
         if ( ( type = parseAttributeType( dn, pos ) ) == null )
         {



Mime
View raw message