Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2527,7 +2527,8 @@ internal void ReadSni(TaskCompletionSource<object> completion)
// Evaluate this condition for MANAGED_SNI. This may not be needed because the network call is happening Async and only the callback can receive a success.
ReadAsyncCallback(IntPtr.Zero, readPacket, 0);

if (!IsPacketEmpty(readPacket))
// Only release packet for Managed SNI as for Native SNI packet is released in finally block.
if (TdsParserStateObjectFactory.UseManagedSNI && !IsPacketEmpty(readPacket))
{
ReleasePacket(readPacket);
}
Expand Down