BUG/MINOR: jwt: Double free in deinit function
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Fri, 4 Feb 2022 13:06:34 +0000 (14:06 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Feb 2022 13:40:46 +0000 (14:40 +0100)
commit3fe88ee0e5b7f0eca88f86bace50f7d1045f8b71
treeef131088fd99cb38512df07cf83c490b25a9def0
parent5e5111a18b82ac6c18611d2167d07b429aa1098e
BUG/MINOR: jwt: Double free in deinit function

The node pointer was not moving properly along the jwt_cert_tree during
the deinit which ended in a double free during cleanup (or when checking
a configuration that used the jwt_verify converter with an explicit
certificate specified).

This patch fixes GitHub issue #1533.
It should be backported to 2.5.

(cherry picked from commit 4930c6c869fb875554d60ce9a2d6362cf16cf295)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/jwt.c