registry: Properly check return values from ldb_*() functions.
commit158a2eed334512c28a7101b3af2c364b4ac1b3fd
authorAndrew Kroeger <andrew@sprocks.gotdns.com>
Fri, 18 Jan 2008 00:48:48 +0000 (18 01:48 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Fri, 18 Jan 2008 02:41:59 +0000 (18 03:41 +0100)
treeb87db6377580708b840bb4b585d161ea1bf4d93d
parent73626c266c3ea1b477185a428b2c1be64feff598
registry: Properly check return values from ldb_*() functions.

There were a few cases left that attempted to detect errors from ldb_*()
function calls using "(ret < 0)".  As all LDB_* error codes are greater than
zero, there was no chance any errors would be detected.  Changed all such tests
to use "(ret != LDB_SUCCESS)".
(This used to be commit 0ed6f1b1628da5b922f02a5f9a6c60071b6277f2)
source4/lib/registry/ldb.c