From 9878ed32d7e130d3b812b488ea5958b7cd5a7e35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Thu, 7 Dec 2023 11:02:23 +0100 Subject: [PATCH] Add virtual dtor to 'MySQL_LDAP_Authentication' interface Plugin de-initialization via 'destroy_MySQL_LDAP_Authentication' interface requires 'MySQL_LDAP_Authentication' destructor, since no virtual destructor is provided, it will resort in undefined behavior. --- include/MySQL_LDAP_Authentication.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/MySQL_LDAP_Authentication.hpp b/include/MySQL_LDAP_Authentication.hpp index f55cc8b20a..970d4cb43a 100644 --- a/include/MySQL_LDAP_Authentication.hpp +++ b/include/MySQL_LDAP_Authentication.hpp @@ -12,6 +12,7 @@ struct LDAP_USER_FIELD_IDX { class MySQL_LDAP_Authentication { public: + virtual ~MySQL_LDAP_Authentication() {}; virtual char * lookup(char *username, char *pass, enum cred_username_type usertype, bool *use_ssl, int *default_hostgroup, char **default_schema, bool *schema_locked, bool *transaction_persistent,