Permalink
Browse files

implemented bug fix for TypeError on line 193

  • Loading branch information...
Aomitayo committed Feb 5, 2013
1 parent f71778b commit 176159de696c697cf61057de76f87927bc20f2b0
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/pdu-writer.js
View
@@ -190,7 +190,7 @@ exports.write = function(pdu) {
if (Buffer.isBuffer(pdu.optional_params[param])) {
length += pdu.optional_params[param].length;
} else {
- length += Buffer.byteLength(pdu.optional_params[param]);
+ length += Buffer.byteLength(param);
}
}

0 comments on commit 176159d

Please sign in to comment.