Skip to content

Commit d8a4588

Browse files
committed
Fall through when the cached password doesn't match
1 parent c0e7f51 commit d8a4588

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

server/auth.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,8 @@ func (c *Conn) compareCacheSha2PasswordAuthData(clientAuthData []byte) error {
151151
// 'fast' auth: write "More data" packet (first byte == 0x01) with the second byte = 0x03
152152
return c.writeAuthMoreDataFastAuth()
153153
}
154-
155-
return ErrAccessDenied
156154
}
157-
// cache miss, do full auth
155+
// cache miss or validation failed, do full auth
158156
if err := c.writeAuthMoreDataFullAuth(); err != nil {
159157
return err
160158
}

0 commit comments

Comments
 (0)