Browse Source

Check pubkeyBuf before pubkeyBuf.length

patch-2
Braydon Fuller 10 years ago
parent
commit
febbcc6a6e
  1. 1
      lib/script/script.js

1
lib/script/script.js

@ -255,6 +255,7 @@ Script.prototype.isPublicKeyHashIn = function(inaccurate) {
if (signatureBuf &&
signatureBuf.length &&
signatureBuf[0] === 0x30 &&
pubkeyBuf &&
pubkeyBuf.length
) {
var version = pubkeyBuf[0];

Loading…
Cancel
Save