From c2e492ece3e5dd39c3c113dfe7f745fc900a5dc0 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 19 Jan 2007 13:36:15 +0000 Subject: r20902: don't crash if the object isn't there yet metze (This used to be commit 4588e2522b11f707e608488c782f6988fd97628a) --- source4/dsdb/samdb/ldb_modules/password_hash.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source4/dsdb/samdb/ldb_modules/password_hash.c b/source4/dsdb/samdb/ldb_modules/password_hash.c index 38a44bdae2..9a72643ec9 100644 --- a/source4/dsdb/samdb/ldb_modules/password_hash.c +++ b/source4/dsdb/samdb/ldb_modules/password_hash.c @@ -1192,6 +1192,10 @@ static int ph_wait(struct ldb_handle *handle) { return LDB_SUCCESS; } + if (ac->search_res == NULL) { + return LDB_ERR_NO_SUCH_OBJECT; + } + /* self search done, go on */ return password_hash_mod_search_dom(handle); -- cgit