Skip to content
Merged
Changes from 1 commit
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
Next Next commit
Don't unset ALPN list pointer during ALPN selection callback.
  • Loading branch information
rzikm authored and github-actions committed Mar 13, 2024
commit e7022093279791c19f2ed6151ce992eaed92b61f
Original file line number Diff line number Diff line change
Expand Up @@ -694,9 +694,6 @@ private static unsafe int AlpnServerSelectCallback(IntPtr ssl, byte** outp, byte
return Ssl.SSL_TLSEXT_ERR_ALERT_FATAL;
}

// reset application data to avoid dangling pointer.
Ssl.SslSetData(ssl, IntPtr.Zero);

GCHandle protocolHandle = GCHandle.FromIntPtr(sslData);
if (!(protocolHandle.Target is List<SslApplicationProtocol> protocolList))
{
Expand Down