Skip to content

Commit 85bcd04

Browse files
author
Tatjana Azundris Nuernberg
committed
Bug#14211069: CRASH WHEN REWRITING GRANT STATEMENT CONTAINING "REQUIRE ISSUER"
Issuer in X.509 info was not rewritten correctly. (X.509 info used for actual connections was correct, but the issuer in a statement rewritten for logging would be wrong.)
1 parent 9729159 commit 85bcd04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/sql_rewrite.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ static void mysql_rewrite_grant(THD *thd, String *rlb)
137137
if (lex->x509_issuer)
138138
{
139139
rlb->append(STRING_WITH_LEN(" ISSUER '"));
140-
rlb->append(lex->x509_subject);
140+
rlb->append(lex->x509_issuer);
141141
rlb->append(STRING_WITH_LEN("'"));
142142
}
143143
if (lex->ssl_cipher)

0 commit comments

Comments
 (0)