registry: Properly check return values from ldb_*() functions.
authorAndrew Kroeger <andrew@sprocks.gotdns.com>
Fri, 18 Jan 2008 00:48:48 +0000 (01:48 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Fri, 18 Jan 2008 02:41:59 +0000 (03:41 +0100)
commit0ed6f1b1628da5b922f02a5f9a6c60071b6277f2
treea15a007a38426f3e3abb71e11314f1620a5b0671
parentc8b22ef30c7fc0ccc15e9fc9a38fdc639fc4b976
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)".
source/lib/registry/ldb.c