diff options
author | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2009-05-25 10:00:18 -0300 |
---|---|---|
committer | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2009-05-25 10:00:18 -0300 |
commit | 1e658cb038f2ceeec16c6beb46a0368a860c6264 (patch) | |
tree | 313e142b0d73e2db6283108c35e6937edefa7fdb /include/my_md5.h | |
parent | 1b3c88e5e4ebf7e999f61247b3c817f466cf3c0b (diff) | |
download | mariadb-git-1e658cb038f2ceeec16c6beb46a0368a860c6264.tar.gz |
Bug#42158: leak: SSL_get_peer_certificate() doesn't have matching X509_free()
The problem is that the server failed to follow the rule that
every X509 object retrieved using SSL_get_peer_certificate()
must be explicitly freed by X509_free(). This caused a memory
leak for builds linked against OpenSSL where the X509 object
is reference counted -- improper counting will prevent the
object from being destroyed once the session containing the
peer certificate is freed.
The solution is to explicitly free every X509 object used.
mysql-test/r/openssl_1.result:
Add test case result for Bug#42158
mysql-test/t/openssl_1.test:
Add test case for Bug#42158
sql/sql_acl.cc:
Deallocate X509 objects.
Diffstat (limited to 'include/my_md5.h')
0 files changed, 0 insertions, 0 deletions