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.
pull/4406/head v2.6.0
Javier Jaramago Fernández 2 years ago
parent 8a4246d1e9
commit 9878ed32d7

@ -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,

Loading…
Cancel
Save