Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove invalid assert in EvpPKeyDuplicate
EvpPKeyDuplicate has an invalid assert in it where it asserts that the handle it was passed is not IsInvalid. This may not be true in a multi-threaded scenario where an object is disposed by one thread while another thread is trying to use the resource. Since we are marshaling the handle as a SafeHandle, just let it do the right thing of throwing an ObjectDisposedException when the marshaller attempts to add a reference to the handle.
- Loading branch information