Merge pull request #245 from inovari/master

Bugfix in packet_length calculation
This commit is contained in:
Tankred Hase 2014-10-02 00:24:23 +02:00
commit 562831d6dc

View File

@ -227,8 +227,8 @@ module.exports = {
mypos2 += tmplen; mypos2 += tmplen;
} else { } else {
mypos2++; mypos2++;
tmplen = (input.charCodeAt(mypos2++) << 24) | (input.charCodeAt(mypos2++) << 16) | (input[mypos2++] tmplen = (input.charCodeAt(mypos2++) << 24) | (input.charCodeAt(mypos2++) << 16) | (input
.charCodeAt() << 8) | input.charCodeAt(mypos2++); .charCodeAt(mypos2++) << 8) | input.charCodeAt(mypos2++);
bodydata += input.substring(mypos2, mypos2 + tmplen); bodydata += input.substring(mypos2, mypos2 + tmplen);
packet_length += tmplen; packet_length += tmplen;
mypos2 += tmplen; mypos2 += tmplen;