framer: fix array length, assuming user-agent is below 0xfd in length.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
This commit is contained in:
parent
9981835df4
commit
faca3454b2
@ -59,7 +59,7 @@ Framer.prototype._addr = function addr(buf, off) {
|
||||
};
|
||||
|
||||
Framer.prototype.version = function version(packet) {
|
||||
var p = new Array(86);
|
||||
var p = new Array(86 + this.agent.length);
|
||||
var off = 0;
|
||||
|
||||
if (!packet)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user