mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

neil_a_wilson
25.23.2006 8e33290e2042f54ffa6393145cdb4997e502bb6c
Update the LDIF diff tool to fix a potential infinite loop that could occur if
the last entry in the source file had been deleted.

OpenDS Issue Number: 881
1 files modified
3 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/tools/LDIFDiff.java 3 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/tools/LDIFDiff.java
@@ -510,8 +510,6 @@
            {
              // There are no more target entries so all of the remaining source
              // entries are deletes.
              while (true)
              {
                writeDelete(writer, sourceEntry);
                differenceFound = true;
                while (sourceIterator.hasNext())
@@ -523,7 +521,6 @@
              }
            }
          }
        }
        if (! differenceFound)