diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2017-05-26 22:44:16 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2017-05-26 22:45:46 +0300 |
commit | 8c81f24d1bedb11364288d42d5492e76816fe20a (patch) | |
tree | aade13bca6207b89634b2b87db16e18301e9ec0e /plugin | |
parent | 8f643e2063c9890a353149f39ef85b2cf3151fd0 (diff) | |
parent | 808f18c748a98dcc7df0b8154563153c8527d3f0 (diff) | |
download | mariadb-git-8c81f24d1bedb11364288d42d5492e76816fe20a.tar.gz |
Merge 10.1 into 10.2
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/auth_pam/auth_pam.c | 2 | ||||
-rw-r--r-- | plugin/cracklib_password_check/cracklib_password_check.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/plugin/auth_pam/auth_pam.c b/plugin/auth_pam/auth_pam.c index 95d95b9719c..ffc3d6f5537 100644 --- a/plugin/auth_pam/auth_pam.c +++ b/plugin/auth_pam/auth_pam.c @@ -166,7 +166,7 @@ static int pam_auth(MYSQL_PLUGIN_VIO *vio, MYSQL_SERVER_AUTH_INFO *info) end: pam_end(pamh, status); - PAM_DEBUG((stderr, "PAM: status = %d user = %s\n", status, new_username)); + PAM_DEBUG((stderr, "PAM: status = %d user = %s\n", status, info->authenticated_as)); return status == PAM_SUCCESS ? CR_OK : CR_ERROR; } diff --git a/plugin/cracklib_password_check/cracklib_password_check.c b/plugin/cracklib_password_check/cracklib_password_check.c index 7861d5fd83e..94587a6d659 100644 --- a/plugin/cracklib_password_check/cracklib_password_check.c +++ b/plugin/cracklib_password_check/cracklib_password_check.c @@ -30,6 +30,7 @@ static int crackme(MYSQL_LEX_STRING *username, MYSQL_LEX_STRING *password) const char *res; memcpy(user, username->str, username->length); + user[username->length]= 0; if ((host= strchr(user, '@'))) *host++= 0; |