summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-09-26 14:29:23 +0200
committerSergei Golubchik <serg@mariadb.org>2016-09-28 17:56:01 +0200
commit794c826244c4d8b082600afa4999130fe688aa49 (patch)
tree787de67d5676c4b45b1b1299d3fa0c56cdf4ea98 /plugin
parent66d9696596edbc20ad36bf3d5bffb5595e8235c3 (diff)
downloadmariadb-git-794c826244c4d8b082600afa4999130fe688aa49.tar.gz
MDEV-10890 plugins.pam fails in buildbot with valgrind
initialize uninitialized value
Diffstat (limited to 'plugin')
-rw-r--r--plugin/auth_pam/auth_pam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/auth_pam/auth_pam.c b/plugin/auth_pam/auth_pam.c
index ac1b3b2da09..8810a418cd3 100644
--- a/plugin/auth_pam/auth_pam.c
+++ b/plugin/auth_pam/auth_pam.c
@@ -131,7 +131,7 @@ static int pam_auth(MYSQL_PLUGIN_VIO *vio, MYSQL_SERVER_AUTH_INFO *info)
{
pam_handle_t *pamh = NULL;
int status;
- const char *new_username;
+ const char *new_username= NULL;
struct param param;
/* The following is written in such a way to make also solaris happy */
struct pam_conv pam_start_arg = { &conv, (char*) &param };
@@ -139,7 +139,7 @@ static int pam_auth(MYSQL_PLUGIN_VIO *vio, MYSQL_SERVER_AUTH_INFO *info)
/*
get the service name, as specified in
- CREATE USER ... IDENTIFIED WITH pam_auth AS "service"
+ CREATE USER ... IDENTIFIED WITH pam AS "service"
*/
const char *service = info->auth_string && info->auth_string[0]
? info->auth_string : "mysql";