summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 159dc0bd0c..e2a2744dae 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -7971,6 +7971,7 @@ static bool run_local_talloc_dict(int dummy)
struct talloc_dict *dict;
struct talloc_dict_test *t;
int key, count, res;
+ bool ok;
dict = talloc_dict_init(talloc_tos());
if (dict == NULL) {
@@ -7984,7 +7985,8 @@ static bool run_local_talloc_dict(int dummy)
key = 1;
t->content = 1;
- if (!talloc_dict_set(dict, data_blob_const(&key, sizeof(key)), t)) {
+ ok = talloc_dict_set(dict, data_blob_const(&key, sizeof(key)), &t);
+ if (!ok) {
return false;
}