summaryrefslogtreecommitdiff
path: root/lib/util/tests
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamen.mazdrashki@postpath.com>2009-09-26 01:36:01 +0300
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-10-01 23:13:00 +0200
commita96c8c23553489ff86be1257bd2cce81b78e1d5b (patch)
treeae6d93aff114b634824cff38062b5afb0400e632 /lib/util/tests
parenta51571bf410ac2f9fb6c6dd0854cfcfcc5c58cea (diff)
downloadsamba-a96c8c23553489ff86be1257bd2cce81b78e1d5b.tar.gz
samba-a96c8c23553489ff86be1257bd2cce81b78e1d5b.tar.bz2
samba-a96c8c23553489ff86be1257bd2cce81b78e1d5b.zip
s4/asn1: local TALLOC_CTX should be child of torture_context
Diffstat (limited to 'lib/util/tests')
-rw-r--r--lib/util/tests/asn1_tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util/tests/asn1_tests.c b/lib/util/tests/asn1_tests.c
index ab2e242be3..56363c236d 100644
--- a/lib/util/tests/asn1_tests.c
+++ b/lib/util/tests/asn1_tests.c
@@ -102,7 +102,7 @@ static bool test_ber_write_OID_String(struct torture_context *tctx)
TALLOC_CTX *mem_ctx;
struct oid_data *data = oid_data_ok;
- mem_ctx = talloc_new(NULL);
+ mem_ctx = talloc_new(tctx);
for (i = 0; i < ARRAY_SIZE(oid_data_ok); i++) {
torture_assert(tctx, ber_write_OID_String(&blob, data[i].oid),
@@ -159,7 +159,7 @@ static bool test_ber_write_partial_OID_String(struct torture_context *tctx)
TALLOC_CTX *mem_ctx;
struct oid_data *data = oid_data_ok;
- mem_ctx = talloc_new(NULL);
+ mem_ctx = talloc_new(tctx);
/* ber_write_partial_OID_String() should work with not partial OIDs also */
for (i = 0; i < ARRAY_SIZE(oid_data_ok); i++) {