From 320a81277e402f393289ae7229b2320324321fb1 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Mon, 26 Mar 2018 19:12:25 +0100 Subject: Remove some code for a contributor that we cannot find This removes some code because we cannot trace the original contributor to get their agreement for the licence change (original commit e03ddfae). After this change there will be numerous failures in the test cases until someone rewrites the missing code. All *_free functions should accept a NULL parameter. After this change the following *_free functions will fail if a NULL parameter is passed: BIO_ACCEPT_free() BIO_CONNECT_free() BN_BLINDING_free() BN_CTX_free() BN_MONT_CTX_free() BN_RECP_CTX_free() BUF_MEM_free() COMP_CTX_free() ERR_STATE_free() TXT_DB_free() X509_STORE_free() ssl3_free() ssl_cert_free() SSL_SESSION_free() SSL_free() [skip ci] Reviewed-by: Bernd Edlinger (Merged from https://github.com/openssl/openssl/pull/5757) --- ssl/ssl_sess.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'ssl/ssl_sess.c') diff --git a/ssl/ssl_sess.c b/ssl/ssl_sess.c index 7d94b57220..1672cd2a95 100644 --- a/ssl/ssl_sess.c +++ b/ssl/ssl_sess.c @@ -785,9 +785,6 @@ void SSL_SESSION_free(SSL_SESSION *ss) { int i; - if (ss == NULL) - return; - CRYPTO_DOWN_REF(&ss->references, &i, ss->lock); REF_PRINT_COUNT("SSL_SESSION", ss); if (i > 0) -- cgit v1.2.3