mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-09 16:47:18 +02:00
MINOR: ssl: Destroy ocsp update http_client during cleanup
If a deinit is started while an OCSP update is in progress we might end up with a dangling http_client instance that should be destroyed properly.
This commit is contained in:
parent
91ff709542
commit
926f34bc36
@ -846,6 +846,11 @@ void ssl_destroy_ocsp_update_task(void)
|
|||||||
|
|
||||||
ssl_sock_free_ocsp(ssl_ocsp_task_ctx.cur_ocsp);
|
ssl_sock_free_ocsp(ssl_ocsp_task_ctx.cur_ocsp);
|
||||||
ssl_ocsp_task_ctx.cur_ocsp = NULL;
|
ssl_ocsp_task_ctx.cur_ocsp = NULL;
|
||||||
|
|
||||||
|
if (ssl_ocsp_task_ctx.hc) {
|
||||||
|
httpclient_stop_and_destroy(ssl_ocsp_task_ctx.hc);
|
||||||
|
ssl_ocsp_task_ctx.hc = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void ssl_ocsp_set_next_update(struct certificate_ocsp *ocsp)
|
static inline void ssl_ocsp_set_next_update(struct certificate_ocsp *ocsp)
|
||||||
|
Loading…
Reference in New Issue
Block a user