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
Prev Previous commit
Next Next commit
update comment
  • Loading branch information
wfurt committed Feb 18, 2022
commit 51ec5607461e62527891c744e8023c5f80d92f03
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ private static unsafe void RemoveSessionCallback(IntPtr ctx, IntPtr session)
IntPtr ptr = Ssl.SslCtxGetData(ctx);
if (ptr == IntPtr.Zero)
{
// Same as above, SafeSslContextHandle could be released while OpenSSL still holds refferecne.
// Same as above, SafeSslContextHandle could be released while OpenSSL still holds reference.
return;
}

Expand All @@ -733,7 +733,6 @@ private static unsafe void RemoveSessionCallback(IntPtr ctx, IntPtr session)
return;
}

//string? name = Marshal.PtrToStringAnsi(Ssl.SessionGetHostname(session));a
IntPtr name = Ssl.SessionGetHostname(session);
Debug.Assert(name != IntPtr.Zero);
ctxHandle.RemoveSession(name, session);
Expand Down