Author: cyberdo
Date: 2006-02-18 14:43:37 +0000 (Sat, 18 Feb 2006)
New Revision: 8058
Modified:
trunk/freenet/src/snmplib/BEREncoder.java
Log:
Small fix to allow signed numbers in SNMP
Modified: trunk/freenet/src/snmplib/BEREncoder.java
===================================================================
--- trunk/freenet/src/snmplib/BEREncoder.java 2006-02-17 23:08:53 UTC (rev
8057)
+++ trunk/freenet/src/snmplib/BEREncoder.java 2006-02-18 14:43:37 UTC (rev
8058)
@@ -87,8 +87,11 @@
}
}
// make the number unsigned
- if (buf[offset-1]<0)
+ /*
+ * No, we should allow signed numbers
+ * if (buf[offset-1]<0)
buf[offset++] = 0;
+ */
return (offset - inoffset);
}