ssl: Fix SSLContext initialization test relying on undefined behavior
Summary: The context initialization test was testing undefined behavior by asserting that OpenSSL will return 0 (and consequently, result in SSLContext throwing) after a SSL_CTX is freed. That is to say, it is exercising control flow based on memory that is already freed. This diff alters the logic to detect an SSL_CTX free via EX_DATA. Reviewed By: igorsugak Differential Revision: D19306728 fbshipit-source-id: cc3a94dbb0b2ab614fa72b099c585467b7156613
Showing
Please register or sign in to comment