1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

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
This commit is contained in:
Pavel Reichl 2013-12-03 14:37:20 +00:00 committed by Simo Sorce
parent bdb818d9b4
commit 4b637c367f

View File

@ -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) {