Permalink
Browse files

Changed buffer testing (buffer/slowbuffer)

  • Loading branch information...
1 parent 78d9275 commit d1febd9b5fffc594f54ea24dd55598d1d81d0d0e @stefounet committed May 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ndns.js
View
@@ -1176,7 +1176,7 @@ function DNSParser(buf, start, end) {
return;
}
- if (!(buf instanceof Buffer)) {
+ if (!(Buffer.isBuffer(buf))) {
throw new Error("Argument should be a buffer");
}
if (start > buf.length) {

0 comments on commit d1febd9

Please sign in to comment.