From: Tom Yu Date: Mon, 3 Oct 2005 21:16:57 +0000 (+0000) Subject: * asn1_get.c (asn1_get_tag_2): Patch from Zhihong Zhang to properly X-Git-Tag: ms-bug-test-20060525~133 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1e691e49430f919ff18f223e4703a93877644cab;p=krb5.git * asn1_get.c (asn1_get_tag_2): Patch from Zhihong Zhang to properly 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 --- diff --git a/src/lib/krb5/asn.1/ChangeLog b/src/lib/krb5/asn.1/ChangeLog index 9d9d2bbc2..f7459c050 100644 --- a/src/lib/krb5/asn.1/ChangeLog +++ b/src/lib/krb5/asn.1/ChangeLog @@ -1,3 +1,8 @@ +2005-10-03 Tom Yu + + * asn1_get.c (asn1_get_tag_2): Patch from Zhihong Zhang to properly + handle tag numbers >= 30. + 2005-03-04 Ken Raeburn * asn1_encode.c (asn1_encode_generaltime): If gmtime_r returns int diff --git a/src/lib/krb5/asn.1/asn1_get.c b/src/lib/krb5/asn.1/asn1_get.c index d5a7ca400..8da5fd880 100644 --- a/src/lib/krb5/asn.1/asn1_get.c +++ b/src/lib/krb5/asn.1/asn1_get.c @@ -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; } }