Permalink
Browse files

bug fix to pdu writer (don't try to decode things!)

  • Loading branch information...
1 parent 6ef1cb4 commit 929eee6be0ed632e0a82ad6eab5dd4d1120be432 @bjyoungblood bjyoungblood committed Feb 3, 2012
Showing with 0 additions and 8 deletions.
  1. +0 −8 lib/pdu-writer.js
View
8 lib/pdu-writer.js
@@ -68,14 +68,6 @@ exports.write = function(pdu) {
length += field.value.length + 1;
}
} else if (field.type === "string") {
- if (typeof field.value !== 'string') {
- try {
- field.value = field.value.toString();
- } catch (error) {
- throw "Could not cast to string";
- }
- }
-
// Don't try to do anything to a buffer
if (!Buffer.isBuffer(field.value)) {
if (typeof field.value === 'string') {

0 comments on commit 929eee6

Please sign in to comment.