Skip to content

Commit f5eebef

Browse files
committed
Don't parse the rest of the OK packet if we're not returning it.
Signed-off-by: Bradley Grainger <[email protected]>
1 parent aeaf900 commit f5eebef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MySqlConnector/Protocol/Payloads/OkPayload.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public static void Verify(ReadOnlySpan<byte> span, IServerCapabilities serverCap
6969

7070
if (serverCapabilities.SupportsSessionTrack)
7171
{
72-
if (reader.BytesRemaining > 0)
72+
if (reader.BytesRemaining > 0 && createPayload)
7373
{
7474
statusBytes = reader.ReadLengthEncodedByteString(); // human-readable info
7575
while (reader.BytesRemaining > 0)

0 commit comments

Comments
 (0)