Skip to content

Commit d09ac83

Browse files
committed
auth: fix plugin name for switched auth methods
1 parent 7242d1e commit d09ac83

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

auth.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,9 @@ func (mc *mysqlConn) handleAuthResult(oldAuthData []byte, plugin string) error {
205205
authData = oldAuthData
206206
}
207207

208-
authResp, err := mc.auth(authData, newPlugin)
208+
plugin = newPlugin
209+
210+
authResp, err := mc.auth(authData, plugin)
209211
if err != nil {
210212
return err
211213
}

0 commit comments

Comments
 (0)