Skip to content

Commit c650a68

Browse files
committed
Fall through when the cached password doesn't match
1 parent 93e73b9 commit c650a68

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/auth.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,8 @@ func (c *Conn) compareCacheSha2PasswordAuthData(clientAuthData []byte) error {
152152
return c.writeAuthMoreDataFastAuth()
153153
}
154154

155-
return errAccessDenied(c.credential)
156155
}
157-
// cache miss, do full auth
156+
// cache miss or validation failed, do full auth
158157
if err := c.writeAuthMoreDataFullAuth(); err != nil {
159158
return err
160159
}

0 commit comments

Comments
 (0)