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

neil_a_wilson
13.01.2007 bc825f37f327005ce417c8bda658b591e5bca35a
opends/src/server/org/opends/server/tools/LDAPCompare.java
@@ -808,6 +808,7 @@
      }
    }
    LDAPCompare ldapCompare = null;
    try
    {
      if (initializeServer)
@@ -843,7 +844,7 @@
      connection.connectToHost(bindDNValue, bindPasswordValue, nextMessageID);
      LDAPCompare ldapCompare = new LDAPCompare(nextMessageID, out, err);
      ldapCompare = new LDAPCompare(nextMessageID, out, err);
      if(fileNameValue == null && dnStrings.isEmpty())
      {
        // Read from stdin.
@@ -891,7 +892,14 @@
    {
      if(connection != null)
      {
        connection.close();
        if (ldapCompare == null)
        {
          connection.close(null);
        }
        else
        {
          connection.close(ldapCompare.nextMessageID);
        }
      }
    }
    return 0;