Revision: 11902
Author: baranowb
Date: Thu May 20 17:17:02 2010
Log: fix undefined len.
http://code.google.com/p/mobicents/source/detail?r=11902

Modified:
/trunk/protocols/asn/src/main/java/org/mobicents/protocols/asn/AsnOutputStream.java

=======================================
--- /trunk/protocols/asn/src/main/java/org/mobicents/protocols/asn/AsnOutputStream.java Fri May 7 05:43:32 2010 +++ /trunk/protocols/asn/src/main/java/org/mobicents/protocols/asn/AsnOutputStream.java Thu May 20 17:17:02 2010
@@ -70,7 +70,12 @@
         * @throws IOException
         */
        public void writeLength(int v) throws IOException {
-               if(v>0x7F)
+               if(v == 0x80)
+               {
+                       this.write(0x80);
+                       return;
+               }
+               else if(v>0x7F)
                {
                        //XXX: note there is super.count !!!
                        int count;

Reply via email to