Skip to content

Commit 794c826

Browse files
committed
MDEV-10890 plugins.pam fails in buildbot with valgrind
initialize uninitialized value
1 parent 66d9696 commit 794c826

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/auth_pam/auth_pam.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ static int pam_auth(MYSQL_PLUGIN_VIO *vio, MYSQL_SERVER_AUTH_INFO *info)
131131
{
132132
pam_handle_t *pamh = NULL;
133133
int status;
134-
const char *new_username;
134+
const char *new_username= NULL;
135135
struct param param;
136136
/* The following is written in such a way to make also solaris happy */
137137
struct pam_conv pam_start_arg = { &conv, (char*) &param };
138138

139139
/*
140140
get the service name, as specified in
141141
142-
CREATE USER ... IDENTIFIED WITH pam_auth AS "service"
142+
CREATE USER ... IDENTIFIED WITH pam AS "service"
143143
*/
144144
const char *service = info->auth_string && info->auth_string[0]
145145
? info->auth_string : "mysql";

0 commit comments

Comments
 (0)