Commit c96b82f6 authored by Sergei Golubchik's avatar Sergei Golubchik

fix embedded to compile with -DHAVE_EMBEDDED_PRIVILEGE_CONTROL

parent 0b6c4bb3
......@@ -771,15 +771,15 @@ int check_embedded_connection(MYSQL *mysql, const char *db)
if (acl_authenticate(thd, 0, end - buf))
{
x_free(thd->security_ctx->user);
my_free(thd->security_ctx->user);
goto err;
}
return 0;
err:
strmake_buf(net->last_error, thd->main_da.message());
strmake_buf(net->last_error, thd->get_stmt_da()->message());
memcpy(net->sqlstate,
mysql_errno_to_sqlstate(thd->main_da.sql_errno()),
mysql_errno_to_sqlstate(thd->get_stmt_da()->sql_errno()),
sizeof(net->sqlstate)-1);
return 1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment