summaryrefslogtreecommitdiffstats
path: root/source4/torture/local
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-15 20:18:22 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-15 19:11:32 +0000
commit5339bad942759f8daa4ff04b0c204247478ed579 (patch)
treeddcd3304ffd1e6cb571b8f2e86e834ea38b0841c /source4/torture/local
parenta8f26f60ec97d23f9c0496797237ead8cc3feff1 (diff)
downloadsamba-5339bad942759f8daa4ff04b0c204247478ed579.tar.gz
samba-5339bad942759f8daa4ff04b0c204247478ed579.tar.xz
samba-5339bad942759f8daa4ff04b0c204247478ed579.zip
s4:torture/local/dbspeed.c - use LDB result constant
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Fri Oct 15 19:11:32 UTC 2010 on sn-devel-104
Diffstat (limited to 'source4/torture/local')
-rw-r--r--source4/torture/local/dbspeed.c3
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;
}