From 39dff20a0ac31666dd10f84267d063a75d9504f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 19 Mar 2018 15:27:55 +0200 Subject: [PATCH] Use correct callback function in MySQLAuth The JSON diagnostics function used the non-JSON version of the callback. --- server/modules/authenticator/MySQLAuth/mysql_auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/authenticator/MySQLAuth/mysql_auth.c b/server/modules/authenticator/MySQLAuth/mysql_auth.c index 20f3ce2c2..6116a2c83 100644 --- a/server/modules/authenticator/MySQLAuth/mysql_auth.c +++ b/server/modules/authenticator/MySQLAuth/mysql_auth.c @@ -674,7 +674,7 @@ json_t* mysql_auth_diagnostic_json(const SERV_LISTENER *port) sqlite3* handle = get_handle(instance); if (sqlite3_exec(handle, "SELECT user, host FROM " MYSQLAUTH_USERS_TABLE_NAME, - diag_cb, rval, &err) != SQLITE_OK) + diag_cb_json, rval, &err) != SQLITE_OK) { MXS_ERROR("Failed to print users: %s", err); sqlite3_free(err);