Skip to content

Commit 2b0c726

Browse files
committed
use composite buf in AltsTsiFrameProtector
1 parent a9de162 commit 2b0c726

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alts/src/main/java/io/grpc/alts/internal/AltsTsiFrameProtector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static final class Unprotector {
206206
this.crypter = crypter;
207207
this.suffixBytes = crypter.getSuffixLength();
208208
this.header = alloc.directBuffer(HEADER_BYTES);
209-
this.firstFrameTag = alloc.directBuffer(suffixBytes);
209+
this.firstFrameTag = alloc.compositeDirectBuffer(suffixBytes);
210210
}
211211

212212
private void addUnhandled(ByteBuf in) {

0 commit comments

Comments
 (0)