Skip to content

Commit

Permalink
Merge pull request #636 from SEAPUNK/patch-1
Browse files Browse the repository at this point in the history
Sender: Don't reuse masking key
  • Loading branch information
3rd-Eden committed Apr 11, 2016
2 parents a7ea2b1 + ca19f08 commit e62cf35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Sender.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ Sender.prototype.frameAndSend = function(opcode, data, finalFragment, maskData,

if (maskData) {
outputBuffer[1] = secondByte | 0x80;
var mask = this._randomMask || (this._randomMask = getRandomMask());
var mask = getRandomMask();
outputBuffer[dataOffset - 4] = mask[0];
outputBuffer[dataOffset - 3] = mask[1];
outputBuffer[dataOffset - 2] = mask[2];
Expand Down

0 comments on commit e62cf35

Please sign in to comment.