mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
MDEV-10890 plugins.pam fails in buildbot with valgrind
initialize uninitialized value
This commit is contained in:
@@ -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*) ¶m };
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user