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

neil_a_wilson
13.01.2007 bc825f37f327005ce417c8bda658b591e5bca35a
opends/src/server/org/opends/server/tools/LDAPDelete.java
@@ -688,6 +688,7 @@
      }
    }
    LDAPDelete ldapDelete = null;
    try
    {
      if (initializeServer)
@@ -722,7 +723,7 @@
                                      connectionOptions, out, err);
      connection.connectToHost(bindDNValue, bindPasswordValue, nextMessageID);
      LDAPDelete ldapDelete = new LDAPDelete(nextMessageID, out, err);
      ldapDelete = new LDAPDelete(nextMessageID, out, err);
      if(fileNameValue == null && dnStrings.isEmpty())
      {
        // Read from stdin.
@@ -769,7 +770,14 @@
    {
      if(connection != null)
      {
        connection.close();
        if (ldapDelete == null)
        {
          connection.close(null);
        }
        else
        {
          connection.close(ldapDelete.nextMessageID);
        }
      }
    }
    return 0;