Skip to content

Commit

Permalink
Add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
felixge committed Sep 2, 2010
1 parent d4c6970 commit c54e50a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/mysql/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,9 @@ Client.prototype._sendOldAuth = function(greeting) {
),
packet = new OutgoingPacket(packetSize, greeting.number+3);

// I could not find any official documentation for this, but from sniffing
// the mysql command line client, I think this is the right way to send the
// scrambled token after receiving the USE_OLD_PASSWORD_PROTOCOL_PACKET.
packet.write(token);
packet.writeFiller(1);

Expand Down

0 comments on commit c54e50a

Please sign in to comment.