Merge pull request #3234 from tritao/zip_non_seekable_streams
[mono.git] / mcs / class / Novell.Directory.Ldap / Novell.Directory.Ldap.Utilclass / DN.cs
index ff17c6b8ab8a95d25a76def50c700538ae16cc0d..1f57f6c14f55b46e51622e2c0b30630718bae992 100644 (file)
@@ -694,8 +694,9 @@ namespace Novell.Directory.Ldap.Utilclass
                        int j = this.rdnList.Count - 1; //index to an RDN of the ContainedDN
                        //Search from the end of the DN for an RDN that matches the end RDN of
                        //containerDN.
-                       while (!((RDN) this.rdnList[j--]).equals((RDN) containerDN.rdnList[i]))
+                       while (!((RDN) this.rdnList[j]).equals((RDN) containerDN.rdnList[i]))
                        {
+                               j--;
                                if (j <= 0)
                                        return false;
                                //if the end RDN of containerDN does not have any equal