Skip to content

Commit

Permalink
Reset decode41
Browse files Browse the repository at this point in the history
  • Loading branch information
svats0001 authored and jchrys committed Jan 11, 2025
1 parent 72aa2a0 commit 31d02c4
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,8 @@ private static DefinitionMetadataMessage decode41(ByteBuf buf, ConnectionContext

String extendTypeInfo = null;
if (context.getCapability().isMariaDb() && context.getCapability().isExtendedTypeInfo()) {
buf.markReaderIndex();
short extendedTypeInfoDataType = buf.readUnsignedByte();
if (extendedTypeInfoDataType == 0 || extendedTypeInfoDataType == 1) {
extendTypeInfo = readVarIntSizedString(buf, charset);
} else {
buf.resetReaderIndex();
}
buf.readUnsignedByte();
extendTypeInfo = readVarIntSizedString(buf, charset);
}

// Skip constant 0x0c encoded by var integer
Expand Down

0 comments on commit 31d02c4

Please sign in to comment.