From 5339bad942759f8daa4ff04b0c204247478ed579 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Fri, 15 Oct 2010 20:18:22 +0200 Subject: s4:torture/local/dbspeed.c - use LDB result constant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Autobuild-User: Matthias Dieter Wallnöfer Autobuild-Date: Fri Oct 15 19:11:32 UTC 2010 on sn-devel-104 --- source4/torture/local/dbspeed.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4') 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; } -- cgit