diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-10-15 20:18:22 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-10-15 19:11:32 +0000 |
commit | 5339bad942759f8daa4ff04b0c204247478ed579 (patch) | |
tree | ddcd3304ffd1e6cb571b8f2e86e834ea38b0841c /source4/torture | |
parent | a8f26f60ec97d23f9c0496797237ead8cc3feff1 (diff) | |
download | samba-5339bad942759f8daa4ff04b0c204247478ed579.tar.gz samba-5339bad942759f8daa4ff04b0c204247478ed579.tar.bz2 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')
-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; } |