summaryrefslogtreecommitdiff
path: root/sql/sql_acl.cc
diff options
context:
space:
mode:
authoranozdrin@mysql.com <>2005-11-10 22:25:03 +0300
committeranozdrin@mysql.com <>2005-11-10 22:25:03 +0300
commit491e4f89f5decceb0e5f5ed71c449de85365c0da (patch)
tree026e84ac950fd1e1d37bff799bf0cc0c016c962a /sql/sql_acl.cc
parent0d4dbfd1b77e35fa3db6f70d4183528006166a11 (diff)
downloadmariadb-git-491e4f89f5decceb0e5f5ed71c449de85365c0da.tar.gz
WL#2818 (Add creator to the trigger definition for privilege
checks on trigger activation)
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r--sql/sql_acl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc
index 2b5945b74af..bc8b9ba2efb 100644
--- a/sql/sql_acl.cc
+++ b/sql/sql_acl.cc
@@ -3532,7 +3532,7 @@ bool check_grant(THD *thd, ulong want_access, TABLE_LIST *tables,
of other queries). For simple queries first_not_own_table is 0.
*/
for (i= 0, table= tables;
- table != first_not_own_table && i < number;
+ table && table != first_not_own_table && i < number;
table= table->next_global, i++)
{
/* Remove SHOW_VIEW_ACL, because it will be checked during making view */