mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
BUG/MEDIUM: fix risk of segfault with "show tls-keys"
The reference to the tls_keys_ref was not deleted from the tlskeys_reference linked list. When the SSL is malconfigured, it can lead to an access to freed memory during a "show tls-keys" on the admin socked.
This commit is contained in:
parent
d55bd7a6a9
commit
7bba4ccfb6
@ -8807,6 +8807,7 @@ out_uri_auth_compat:
|
|||||||
if(bind_conf->keys_ref) {
|
if(bind_conf->keys_ref) {
|
||||||
free(bind_conf->keys_ref->filename);
|
free(bind_conf->keys_ref->filename);
|
||||||
free(bind_conf->keys_ref->tlskeys);
|
free(bind_conf->keys_ref->tlskeys);
|
||||||
|
LIST_DEL(&bind_conf->keys_ref->list);
|
||||||
free(bind_conf->keys_ref);
|
free(bind_conf->keys_ref);
|
||||||
}
|
}
|
||||||
#endif /* USE_OPENSSL */
|
#endif /* USE_OPENSSL */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user