]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl: fix potential memory leak in ssl_sock_load_dh_params()
authorRoberto Guimaraes <rguimaraes@fastly.com>
Sat, 11 Jun 2016 22:58:10 +0000 (15:58 -0700)
committerWilly Tarreau <w@1wt.eu>
Sun, 12 Jun 2016 11:12:32 +0000 (13:12 +0200)
commit0ea4c23ca754c3e6c005b67403a0619ca17d4587
tree222513b1698985293adf0f25a8d6c76a93f2bd01
parent4b788f7d349ddde3f70f063b7394529eac6ab678
BUG/MINOR: ssl: fix potential memory leak in ssl_sock_load_dh_params()

Valgrind reports that the memory allocated in ssl_get_dh_1024() was leaking. Upon further inspection of openssl code, it seems that SSL_CTX_set_tmp_dh makes a copy of the data, so calling DH_free afterwards makes sense.
src/ssl_sock.c