summaryrefslogtreecommitdiffstats
path: root/source4/dsdb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-01-19 13:36:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:43:50 -0500
commitc2e492ece3e5dd39c3c113dfe7f745fc900a5dc0 (patch)
tree63a8cd76efefcb561ca31a1202dcca67cfbb11d5 /source4/dsdb
parent87f5bed98ad4e40c12095492677b8c5433217aa2 (diff)
downloadsamba-c2e492ece3e5dd39c3c113dfe7f745fc900a5dc0.tar.gz
samba-c2e492ece3e5dd39c3c113dfe7f745fc900a5dc0.tar.xz
samba-c2e492ece3e5dd39c3c113dfe7f745fc900a5dc0.zip
r20902: don't crash if the object isn't there yet
metze (This used to be commit 4588e2522b11f707e608488c782f6988fd97628a)
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/password_hash.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/password_hash.c b/source4/dsdb/samdb/ldb_modules/password_hash.c
index 38a44bdae21..9a72643ec98 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);