commit | c7e12637df094630c4d39ed9457d8b927023e75d | [log] [tgz] |
---|---|---|
author | Remi Gacogne <rgacogne-github@coredump.fr> | Sat Jul 02 16:26:10 2016 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Jul 12 11:48:06 2016 +0200 |
tree | 82f714c41ad0bdadfb1c90423965acd0e47fcb74 | |
parent | 8e48b8745eaabdad100ade1ca4fb13c6154fab4b [diff] |
BUG/MINOR: ssl: fix potential memory leak in ssl_sock_load_dh_params() Roberto Guimaraes reported that Valgrind complains about a leak in ssl_get_dh_1024(). This is caused caused by an oversight in ssl_sock_load_dh_params(), where local_dh_1024 is always replaced by a new DH object even if it already holds one. This patch simply checks whether local_dh_1024 is NULL before calling ssl_get_dh_1024().