Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packets.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,8 @@ func (mc *mysqlConn) writeOldAuthPacket(cipher []byte) error {
return driver.ErrBadConn
}

// write auth switch header for mysql_old_password
data[0], data[1], data[2], data[3] = 0x09, 0x00, 0x00, 0x03
// Add the scrambled password [null terminated string]
copy(data[4:], scrambleBuff)
data[4+pktLen-1] = 0x00
Expand Down