mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-25 04:18:01 +00:00
MINOR: jwt: Empty the certificate tree during deinit
The tree in which the JWT certificates are stored was not emptied. It is now done during deinit.
This commit is contained in:
parent
75cc65356f
commit
0b24d2fa45
15
src/jwt.c
15
src/jwt.c
@ -358,4 +358,19 @@ end:
|
|||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void jwt_deinit(void)
|
||||||
|
{
|
||||||
|
struct ebmb_node *node = NULL;
|
||||||
|
struct jwt_cert_tree_entry *entry = NULL;
|
||||||
|
|
||||||
|
node = ebmb_first(&jwt_cert_tree);
|
||||||
|
while (node) {
|
||||||
|
entry = ebmb_entry(node, struct jwt_cert_tree_entry, node);
|
||||||
|
ha_free(&entry);
|
||||||
|
node = ebmb_first(&jwt_cert_tree);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
REGISTER_POST_DEINIT(jwt_deinit);
|
||||||
|
|
||||||
|
|
||||||
#endif /* USE_OPENSSL */
|
#endif /* USE_OPENSSL */
|
||||||
|
Loading…
Reference in New Issue
Block a user