summaryrefslogtreecommitdiffstats
path: root/lib/ldb/common
diff options
context:
space:
mode:
authorPavel Reichl <pavel.reichl@redhat.com>2013-12-03 14:37:20 +0000
committerSimo Sorce <idra@samba.org>2013-12-03 21:13:53 +0100
commit4b637c367fdda832e95208f49e8893b0a0cac4b4 (patch)
treec6d0522f53503145c99f10c01c3b4873f21e5f75 /lib/ldb/common
parentbdb818d9b49f1a99e81f940acbe35d82571ae30c (diff)
downloadsamba-4b637c367fdda832e95208f49e8893b0a0cac4b4.tar.gz
samba-4b637c367fdda832e95208f49e8893b0a0cac4b4.tar.xz
samba-4b637c367fdda832e95208f49e8893b0a0cac4b4.zip
ldb: use of NULL pointer bugfix
Autobuild-User(master): Simo Sorce <idra@samba.org> Autobuild-Date(master): Tue Dec 3 21:13:53 CET 2013 on sn-devel-104
Diffstat (limited to 'lib/ldb/common')
-rw-r--r--lib/ldb/common/ldb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ldb/common/ldb.c b/lib/ldb/common/ldb.c
index 3dc6d872289..d2b873f0b51 100644
--- a/lib/ldb/common/ldb.c
+++ b/lib/ldb/common/ldb.c
@@ -572,8 +572,8 @@ int ldb_wait(struct ldb_handle *handle, enum ldb_wait_type type)
struct tevent_context *ev;
int ret;
- if (!handle) {
- return ldb_error(handle->ldb, LDB_ERR_UNAVAILABLE, NULL);
+ if (handle == NULL) {
+ return LDB_ERR_UNAVAILABLE;
}
if (handle->state == LDB_ASYNC_DONE) {