diff options
author | unknown <kaa@polly.local> | 2007-06-06 23:47:43 +0400 |
---|---|---|
committer | unknown <kaa@polly.local> | 2007-06-06 23:47:43 +0400 |
commit | 83f622117593c9103fc8469399ffddcf5a91da1b (patch) | |
tree | f6a6c8714243e1c604145e7485edbfa14f06a4c8 /sql/sql_acl.cc | |
parent | 10a21ed042e39c8800893dbb8ba711d54daf4896 (diff) | |
parent | cf6e5c12d16a40744f0155a23c3d66e1ee5a74f1 (diff) | |
download | mariadb-git-83f622117593c9103fc8469399ffddcf5a91da1b.tar.gz |
Merge polly.local:/home/kaa/src/maint/bug28895/my51-bug28895
into polly.local:/home/kaa/src/maint/mysql-5.1-maint
sql/sql_acl.cc:
Auto merged
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r-- | sql/sql_acl.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 59e3c0a7dd4..1b57e9363e4 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -1110,14 +1110,15 @@ bool acl_getroot_no_password(Security_context *sctx, char *user, char *host, */ for (i=0 ; i < acl_users.elements ; i++) { - acl_user= dynamic_element(&acl_users,i,ACL_USER*); - if ((!acl_user->user && !user[0]) || - (acl_user->user && strcmp(user, acl_user->user) == 0)) + ACL_USER *acl_user_tmp= dynamic_element(&acl_users,i,ACL_USER*); + if ((!acl_user_tmp->user && !user[0]) || + (acl_user_tmp->user && strcmp(user, acl_user_tmp->user) == 0)) { - if (compare_hostname(&acl_user->host, host, ip)) + if (compare_hostname(&acl_user_tmp->host, host, ip)) { - res= 0; - break; + acl_user= acl_user_tmp; + res= 0; + break; } } } |