]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: ssl: fix double-free on failed realloc in ssl_sock.c
authorWilly Tarreau <w@1wt.eu>
Mon, 27 Apr 2026 06:38:31 +0000 (08:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 27 Apr 2026 07:15:21 +0000 (09:15 +0200)
commit0522264eb46124ba00ed267d65a14d19b55953e4
tree862e86c24fad084f285dbd0e0f7aaf7d6b61aa0c
parent720b3d1f56c2af1eff50648310d8a38b2271d960
BUG/MINOR: ssl: fix double-free on failed realloc in ssl_sock.c

Recent commit 90bfbea7c0 ("BUG/MINOR: ssl: fix memory leaks on realloc
failure in ssl_sock.c") accidentally turned a memory leak in case of
allocation failure into a double-free: the original pointer must no
longer be released. In addition, the allocated_size has to be reset
in case of failure. This needs to be backported to 3.3 like previous
commit.
src/ssl_sock.c