Skip to content

Commit 7de37fa

Browse files
author
Anushree Prakash B
committed
Bug#20228478 - ON REPLICATION SLAVE ALTER USER FAILING FOR
USER WITH SHA256_PASSWORD PLUGIN Post push fix to address test script failure.
1 parent 850fabb commit 7de37fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sql/auth/sql_user.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
22
This program is free software; you can redistribute it and/or modify
33
it under the terms of the GNU General Public License as published by
44
the Free Software Foundation; version 2 of the License.
@@ -786,8 +786,8 @@ bool change_password(THD *thd, const char *host, const char *user,
786786
mysql_mutex_unlock(&acl_cache->lock);
787787
result= 0;
788788
escaped_hash_str_len= (opt_log_builtin_as_identified_by_password?
789-
strlen(combo->auth.str)*2+1 :
790-
strlen(acl_user->auth_string.str)*2+1);
789+
combo->auth.length:
790+
acl_user->auth_string.length)*2+1;
791791
/*
792792
Allocate a buffer for the escaped password. It should at least have place
793793
for length*2+1 chars.

0 commit comments

Comments
 (0)