diff options
author | Matt Caswell <matt@openssl.org> | 2018-03-26 20:12:25 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2018-03-27 18:15:24 +0200 |
commit | 320a81277e402f393289ae7229b2320324321fb1 (patch) | |
tree | 342b0eb948fccb52621e97cce7b69b09c701ca05 /crypto/buffer | |
parent | Assert that alpn_selected is NULL before we assign it (diff) | |
download | openssl-320a81277e402f393289ae7229b2320324321fb1.tar.xz openssl-320a81277e402f393289ae7229b2320324321fb1.zip |
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 <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/5757)
Diffstat (limited to 'crypto/buffer')
-rw-r--r-- | crypto/buffer/buffer.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/crypto/buffer/buffer.c b/crypto/buffer/buffer.c index cbd2e53113..dfa5c23d1d 100644 --- a/crypto/buffer/buffer.c +++ b/crypto/buffer/buffer.c @@ -42,9 +42,6 @@ BUF_MEM *BUF_MEM_new(void) void BUF_MEM_free(BUF_MEM *a) { - if (a == NULL) - return; - if (a->data != NULL) { if (a->flags & BUF_MEM_FLAG_SECURE) OPENSSL_secure_clear_free(a->data, a->max); |