fix: modifyDn length fix

This commit is contained in:
John Johnston 2021-07-29 08:53:40 -07:00
parent 91de94d1a6
commit badf820523
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ ModifyDNRequest.prototype._toBer = function (ber) {
const len = Buffer.byteLength(s)
ber.writeByte(0x80) // MODIFY_DN_REQUEST_NEW_SUPERIOR_TAG
ber.writeByte(len)
ber.writeLength(len)
ber._ensure(len)
ber._buf.write(s, ber._offset)
ber._offset += len