BUG/MINOR: ssl_sock: fix possible memory leak on OOM
authorWilly Tarreau <w@1wt.eu>
Mon, 21 Aug 2023 06:45:35 +0000 (08:45 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 25 Aug 2023 12:32:50 +0000 (14:32 +0200)
commitff9e6538590ef26fd03a75474a7e1d2405f53fdd
tree6f411e4dc7921f66c26c73f73eca878881ef0f7d
parent7e9aea789f4412bbcb149f9954b08da861c2fc7e
BUG/MINOR: ssl_sock: fix possible memory leak on OOM

That's the classical realloc() issue: if it returns NULL, the old area
is not freed but we erase the pointer. It was brought by commit e18d4e828
("BUG/MEDIUM: ssl: backend TLS resumption with sni and TLSv1.3"), and
should be backported where this commit was backported.
src/ssl_sock.c