Check that decoding worked before before checking is its a primitive
type or constructed type. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24603 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -516,7 +516,7 @@ decode_type (const char *name, const Type *t, int optional,
|
|||||||
ide = typestring;
|
ide = typestring;
|
||||||
} else {
|
} else {
|
||||||
fprintf(codefile,
|
fprintf(codefile,
|
||||||
"if (%s != %s) { e = ASN1_BAD_ID; }\n",
|
"if (e == 0 && %s != %s) { e = ASN1_BAD_ID; }\n",
|
||||||
typestring, is_primitive_type(t->subtype->type) ? "PRIM" : "CONS");
|
typestring, is_primitive_type(t->subtype->type) ? "PRIM" : "CONS");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user