diff options
Diffstat (limited to 'source4/torture/local')
-rw-r--r-- | source4/torture/local/dbspeed.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/torture/local/dbspeed.c b/source4/torture/local/dbspeed.c index f66688dd54..62c1384d77 100644 --- a/source4/torture/local/dbspeed.c +++ b/source4/torture/local/dbspeed.c @@ -145,7 +145,8 @@ static bool ldb_add_record(struct ldb_context *ldb, unsigned rid) return false; } - if (ldb_msg_add_fmt(msg, "UID", "%u", rid) != 0) { + ret = ldb_msg_add_fmt(msg, "UID", "%u", rid); + if (ret != LDB_SUCCESS) { talloc_free(msg); return false; } |