From 7947509525ce248e986104f776d2e06efda8f05d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Lindstr=C3=B6m?= Date: Tue, 8 Jul 2025 15:06:27 +0300 Subject: [PATCH] MDEV-37136 : sql/wsrep_allowlist_service.cc:40:27: runtime error: member call on null pointer of type 'Wsrep_schema' Problem was that we used wsrep_schema pointer before it was initialized. Fix is to allow all connections when wsrep_schema is not yet initialized and check allowed connections only when wsrep_schema has been initialized. --- sql/wsrep_allowlist_service.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sql/wsrep_allowlist_service.cc b/sql/wsrep_allowlist_service.cc index 23ade8b32b994..866d24e21774a 100644 --- a/sql/wsrep_allowlist_service.cc +++ b/sql/wsrep_allowlist_service.cc @@ -36,8 +36,12 @@ bool Wsrep_allowlist_service::allowlist_cb ( const wsrep::const_buffer& value) WSREP_NOEXCEPT { - std::string string_value(value.data()); - bool res= wsrep_schema->allowlist_check(key, string_value); + bool res=true; // allow all connections + if (wsrep_schema) + { + std::string string_value(value.data()); + res= wsrep_schema->allowlist_check(key, string_value); + } return res; }