From 543f2ce8b601b51cc2b625f633bb9795c7a62aa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Wed, 1 Jul 2020 22:08:57 +0200 Subject: [PATCH] Fixes #2921: Prevent 'child_mysql' to access 'GloMTH' if it's already de-initialized --- lib/ProxySQL_Admin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ProxySQL_Admin.cpp b/lib/ProxySQL_Admin.cpp index e672a38ed..983093dab 100644 --- a/lib/ProxySQL_Admin.cpp +++ b/lib/ProxySQL_Admin.cpp @@ -4603,6 +4603,7 @@ void ProxySQL_Admin::vacuum_stats(bool is_admin) { void *child_mysql(void *arg) { + if (GloMTH == nullptr) { return NULL; } pthread_attr_t thread_attr; size_t tmp_stack_size=0;