diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-10-25 23:14:56 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-10-25 23:14:56 +1100 |
commit | 98a3725252aabeece2b31f87e1c6cfc543fc716d (patch) | |
tree | 2365b53965e23fff5f703be80329799eec3b630a /source4/lib/ldb/ldb_sqlite3 | |
parent | 12c9af78179b71721e30b03ae9fc0edd7cda940b (diff) | |
parent | 1ea460b0b0dc4ee8a14c764e81f368d4f7e9ff45 (diff) | |
download | samba-98a3725252aabeece2b31f87e1c6cfc543fc716d.tar.gz samba-98a3725252aabeece2b31f87e1c6cfc543fc716d.tar.bz2 samba-98a3725252aabeece2b31f87e1c6cfc543fc716d.zip |
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Diffstat (limited to 'source4/lib/ldb/ldb_sqlite3')
-rw-r--r-- | source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c b/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c index 7e420e4ceb..f07b330a8b 100644 --- a/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c +++ b/source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c @@ -1897,7 +1897,7 @@ static int lsqlite3_connect(struct ldb_context *ldb, int i, ret; module = ldb_module_new(ldb, ldb, "ldb_sqlite3 backend", &lsqlite3_ops); - if (!module) return -1; + if (!module) return LDB_ERR_OPERATIONS_ERROR; lsqlite3 = talloc(module, struct lsqlite3_private); if (!lsqlite3) { @@ -1941,14 +1941,14 @@ static int lsqlite3_connect(struct ldb_context *ldb, } *_module = module; - return 0; + return LDB_SUCCESS; failed: if (lsqlite3 && lsqlite3->sqlite != NULL) { (void) sqlite3_close(lsqlite3->sqlite); } talloc_free(lsqlite3); - return -1; + return LDB_ERR_OPERATIONS_ERROR; } const struct ldb_backend_ops ldb_sqlite3_backend_ops = { |