Skip to content

Commit

Permalink
Add virtual dtor to 'MySQL_LDAP_Authentication' interface
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JavierJF committed Mar 1, 2024
1 parent 8a4246d commit 9878ed3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/MySQL_LDAP_Authentication.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9878ed3

Please sign in to comment.