Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
{
struct nesting *nesting;
- asn1_write_uint8(data, tag);
+ if (!asn1_write_uint8(data, tag)) {
+ return false;
+ }
nesting = talloc(data, struct nesting);
if (!nesting) {
data->has_error = true;
struct nesting *nesting;
size_t len;
+ if (data->has_error) {
+ return false;
+ }
+
nesting = data->nesting;
if (!nesting) {
bool asn1_write_implicit_Integer(struct asn1_data *data, int i)
{
+ if (data->has_error) {
+ return false;
+ }
+
if (i == -1) {
/* -1 is special as it consists of all-0xff bytes. In
push_int_bigendian this is the only case that is not