git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24208 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-12-18 04:59:47 +00:00
parent c6e9b9cabc
commit b7632c038b

View File

@@ -267,7 +267,10 @@ der_get_octet_string_ber (const unsigned char *p, size_t len,
while (len) { while (len) {
e = der_get_tag (p, len, &class, &type, &tag, &l); e = der_get_tag (p, len, &class, &type, &tag, &l);
if (e) goto out; if (e) goto out;
if (class != ASN1_C_UNIV) return ASN1_BAD_ID; if (class != ASN1_C_UNIV) {
e = ASN1_BAD_ID;
goto out;
}
if (type == PRIM && tag == UT_EndOfContent) { if (type == PRIM && tag == UT_EndOfContent) {
if (depth == 0) if (depth == 0)
break; break;