You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2005/07/31 18:11:37 UTC

svn commit: r226658 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/Value.java

Author: elecharny
Date: Sun Jul 31 09:11:34 2005
New Revision: 226658

URL: http://svn.apache.org/viewcvs?rev=226658&view=rev
Log:
Fixed a bug in the generation of integer values (the size was not
correctly calculated)

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/Value.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/Value.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/Value.java?rev=226658&r1=226657&r2=226658&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/Value.java (original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/tlv/Value.java Sun Jul 31 09:11:34 2005
@@ -269,7 +269,7 @@
         try
         {
             buffer.put( LdapConstants.INTEGER_TAG );
-            buffer.put( Length.getBytes( value ) );
+            buffer.put( Length.getBytes( Length.getNbBytes( value ) ) );
             buffer.put( getBytes( value ) );
         }
         catch ( BufferOverflowException boe )