* asn1_get.c (asn1_get_tag_2): Patch from Zhihong Zhang to properly
authorTom Yu <tlyu@mit.edu>
Mon, 3 Oct 2005 21:16:57 +0000 (21:16 +0000)
committerTom Yu <tlyu@mit.edu>
Mon, 3 Oct 2005 21:16:57 +0000 (21:16 +0000)
handle tag numbers >= 30.

ticket: 2542
target_version: 1.4.3
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17400 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/asn.1/ChangeLog
src/lib/krb5/asn.1/asn1_get.c

index 9d9d2bbc29c88958ffa4e5e5faa1ac91942c75ca..f7459c0501ad48c6fd89670b6156e9bc6514f194 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-03  Tom Yu  <tlyu@mit.edu>
+
+       * asn1_get.c (asn1_get_tag_2): Patch from Zhihong Zhang to properly
+       handle tag numbers >= 30.
+
 2005-03-04  Ken Raeburn  <raeburn@mit.edu>
 
        * asn1_encode.c (asn1_encode_generaltime): If gmtime_r returns int
index d5a7ca40057779906b1811722a25ff89b34e30d9..8da5fd88062ce51b7a71dc32b3365a1b376b5b3f 100644 (file)
@@ -64,7 +64,7 @@ asn1_get_tag_2(asn1buf *buf, taginfo *t)
                retval = asn1buf_remove_octet(buf,&o);
                if (retval) return retval;
                tn = (tn<<7) + (asn1_tagnum)(o&0x7F);
-           }while(tn&0x80);
+           }while(o&0x80);
            t->tagnum = tn;
        }
     }