git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c340d8
)
asn1: Remove a reference to asn1_data internals
author
Volker Lendecke
<vl@samba.org>
Mon, 4 Jan 2016 09:42:11 +0000
(10:42 +0100)
committer
Jeremy Allison
<jra@samba.org>
Tue, 5 Jan 2016 23:54:18 +0000
(
00:54
+0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/tests/asn1_tests.c
patch
|
blob
|
history
diff --git
a/lib/util/tests/asn1_tests.c
b/lib/util/tests/asn1_tests.c
index 6dd7c64e16b1bfe8a07e7f87c0200cb860950872..e4b386ad785aee637ee81aa00bc37850b1cae2d7 100644
(file)
--- a/
lib/util/tests/asn1_tests.c
+++ b/
lib/util/tests/asn1_tests.c
@@
-337,8
+337,10
@@
static bool test_asn1_Integer(struct torture_context *tctx)
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;