From 3f4d6d2a5a697a37060ade9f6981c420264c9dbd Mon Sep 17 00:00:00 2001 From: Pavel Reichl Date: Tue, 3 Dec 2013 14:37:20 +0000 Subject: [PATCH] ldb: use of NULL pointer bugfix Autobuild-User(master): Simo Sorce Autobuild-Date(master): Tue Dec 3 21:13:53 CET 2013 on sn-devel-104 (cherry picked from commit 4b637c367fdda832e95208f49e8893b0a0cac4b4) --- lib/ldb/common/ldb.c | 4 ++-- 1 file 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) { -- 2.11.4.GIT