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

Ludovic Poitou
24.44.2013 46fd9423ab622d7f9531aa1564846ec52fe09534
opends/src/server/org/opends/server/replication/protocol/ModifyDNMsg.java
@@ -331,14 +331,13 @@
  public byte[] getBytes_V45(short reqProtocolVersion)
      throws UnsupportedEncodingException
  {
    int bodyLength = 0;
    byte[] byteNewSuperior = null;
    byte[] byteNewSuperiorId = null;
    // calculate the length necessary to encode the parameters
    byte[] byteNewRdn = newRDN.getBytes("UTF-8");
    bodyLength = byteNewRdn.length + 1 + 1;
    int bodyLength = byteNewRdn.length + 1 + 1;
    if (newSuperior != null)
    {
@@ -438,10 +437,7 @@
    pos += length + 1;
    /* get the deleteoldrdn flag */
    if (in[pos] == 0)
      deleteOldRdn = false;
    else
      deleteOldRdn = true;
    deleteOldRdn = in[pos] != 0;
    pos++;
    // For easiness (no additional method), simply compare PDU type to
@@ -501,10 +497,7 @@
    pos += length + 1;
    /* get the deleteoldrdn flag */
    if (in[pos] == 0)
      deleteOldRdn = false;
    else
      deleteOldRdn = true;
    deleteOldRdn = in[pos] != 0;
    pos++;
    // Read mods len