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

neil_a_wilson
09.41.2007 9ddb8a08f2e80d9a9eaae5f03d93106ec792138c
opendj-sdk/opends/src/dsml/org/opends/dsml/protocol/DSMLCompareOperation.java
@@ -83,25 +83,7 @@
    throws IOException, LDAPException, ASN1Exception
  {
    LDAPResult compareResponse = objFactory.createLDAPResult();
    String requestID = compareRequest.getRequestID();
    int reqID = 1;
    try
    {
      if(requestID != null)
      {
        reqID = Integer.parseInt(requestID);
      }
    } catch (NumberFormatException nfe)
    {
      throw new IOException(nfe.getMessage());
    }
    // Set the response id.
    if(requestID != null)
    {
      compareResponse.setRequestID(requestID);
    }
    compareResponse.setRequestID(compareRequest.getRequestID());
    // Read the attribute name and value for the compare request.
    AttributeValueAssertion attrValAssertion = compareRequest.getAssertion();
@@ -113,7 +95,7 @@
    // Create and send the LDAP compare request to the server.
    ProtocolOp op = new CompareRequestProtocolOp(dnStr, attrName, attrValue);
    LDAPMessage msg = new LDAPMessage(reqID, op);
    LDAPMessage msg = new LDAPMessage(DSMLServlet.nextMessageID(), op);
    int numBytes = connection.getASN1Writer().writeElement(msg.encode());
    // Read and decode the LDAP response from the server.