diff options
author | Pavel Reichl <pavel.reichl@redhat.com> | 2013-12-03 14:37:20 +0000 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2014-07-15 12:46:13 +0200 |
commit | 3f4d6d2a5a697a37060ade9f6981c420264c9dbd (patch) | |
tree | 44520398430753f38e017cd4532c23f0e9557eda /lib/ldb | |
parent | 0919ef32b47b485330cd0f63bd17af9b43299664 (diff) | |
download | samba-3f4d6d2a5a697a37060ade9f6981c420264c9dbd.tar.gz |
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
(cherry picked from commit 4b637c367fdda832e95208f49e8893b0a0cac4b4)
Diffstat (limited to 'lib/ldb')
-rw-r--r-- | lib/ldb/common/ldb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ldb/common/ldb.c b/lib/ldb/common/ldb.c index 3dc6d87228..d2b873f0b5 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) { |