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

neil_a_wilson
13.01.2007 bc825f37f327005ce417c8bda658b591e5bca35a
opends/src/server/org/opends/server/tools/LDAPModify.java
@@ -1051,6 +1051,7 @@
      }
    }
    LDAPModify ldapModify = null;
    try
    {
      if (initializeServer)
@@ -1085,8 +1086,7 @@
                                      connectionOptions, out, err);
      connection.connectToHost(bindDNValue, bindPasswordValue, nextMessageID);
      LDAPModify ldapModify = new LDAPModify(fileNameValue, nextMessageID,
                                             out, err);
      ldapModify = new LDAPModify(fileNameValue, nextMessageID, out, err);
      InputStream is = System.in;
      if(fileNameValue != null)
      {
@@ -1123,7 +1123,14 @@
    {
      if(connection != null)
      {
        connection.close();
        if (ldapModify == null)
        {
          connection.close(null);
        }
        else
        {
          connection.close(ldapModify.nextMessageID);
        }
      }
    }
    return 0;