summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNayuta Yanagisawa <nayuta.yanagisawa@hey.com>2022-01-24 15:01:32 +0900
committerNayuta Yanagisawa <nayuta.yanagisawa@hey.com>2022-02-22 16:47:51 +0900
commitf4aa25fe12b645e1dbddde5b680107d7babb0db8 (patch)
tree756d092201f11e9b37c07c872a6ed729649e067e
parent647e952315740286df3cf6643732ad8deb1ff7fe (diff)
downloadmariadb-git-f4aa25fe12b645e1dbddde5b680107d7babb0db8.tar.gz
MDEV-27575 SIGSEGV in intern_plugin_lock on SHUTDOWN when setting Spider as default tmp SEbb-10.2-MDEV-27575
Setting Spider as the default tmp storage engine results in the server crash at its shutdown. The crash is due to the lack of NULL checking in intern_plugin_lock().
-rw-r--r--sql/sql_plugin.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_plugin.cc b/sql/sql_plugin.cc
index 97bc17042b2..bf0f15172eb 100644
--- a/sql/sql_plugin.cc
+++ b/sql/sql_plugin.cc
@@ -958,7 +958,7 @@ static plugin_ref intern_plugin_lock(LEX *lex, plugin_ref rc,
mysql_mutex_assert_owner(&LOCK_plugin);
- if (pi->state & state_mask)
+ if (pi && (pi->state & state_mask))
{
plugin_ref plugin;
#ifdef DBUG_OFF