BUG: https://bugzilla.samba.org/show_bug.cgi?id=11804
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit
44c56fc66788adf7b58f1d77a1e7d79d840ea9f6)
if (!asn1_write_Integer(data, integer_tests[i].value)) goto err;
- blob.data = data->data;
- blob.length = data->length;
+ if (!asn1_blob(data, &blob)) {
+ goto err;
+ }
+
torture_assert_data_blob_equal(tctx, blob, integer_tests[i].blob, "asn1_write_Integer gave incorrect result");
if (!asn1_load(data, blob)) goto err;