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

boli
15.34.2009 27dc85f53cea91141c3350ea653663ddc8dc27d2
Fix for issue 3918: Restored prior behavior where an empty controls context-specific BER sequence is not encoded if the LDAP message have no controls.
1 files modified
3 ■■■■■ changed files
opends/src/server/org/opends/server/protocols/ldap/LDAPMessage.java 3 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/protocols/ldap/LDAPMessage.java
@@ -546,12 +546,15 @@
    stream.writeInteger(messageID);
    protocolOp.write(stream);
    if(!controls.isEmpty())
    {
    stream.writeStartSequence(TYPE_CONTROL_SEQUENCE);
    for(Control control : controls)
    {
      control.write(stream);
    }
    stream.writeEndSequence();
    }
    stream.writeEndSequence();
  }