Skip to content

Commit

Permalink
use composite buf in AltsTsiFrameProtector
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiitk committed Oct 5, 2020
1 parent a9de162 commit 2b0c726
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static final class Unprotector {
this.crypter = crypter;
this.suffixBytes = crypter.getSuffixLength();
this.header = alloc.directBuffer(HEADER_BYTES);
this.firstFrameTag = alloc.directBuffer(suffixBytes);
this.firstFrameTag = alloc.compositeDirectBuffer(suffixBytes);
}

private void addUnhandled(ByteBuf in) {
Expand Down

0 comments on commit 2b0c726

Please sign in to comment.