Commit 21642fb5 authored by unknown's avatar unknown

Bug #5413 mysqlcheck segfaults when user has to few permissions

parent 982a7882
...@@ -413,8 +413,8 @@ static int process_all_tables_in_db(char *database) ...@@ -413,8 +413,8 @@ static int process_all_tables_in_db(char *database)
LINT_INIT(res); LINT_INIT(res);
if (use_db(database)) if (use_db(database))
return 1; return 1;
if (!(mysql_query(sock, "SHOW TABLES") || if (mysql_query(sock, "SHOW TABLES") ||
(res = mysql_store_result(sock)))) !((res= mysql_store_result(sock))))
return 1; return 1;
if (opt_all_in_1) if (opt_all_in_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