mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
r15788: Do not crash when no result is returned
(This used to be commit efb7e39e51
)
This commit is contained in:
parent
f376b6c386
commit
efa3803335
@ -186,6 +186,10 @@ static void cldap_dump_results(struct cldap_search *search)
|
||||
struct ldb_ldif ldif;
|
||||
struct ldb_context *ldb;
|
||||
|
||||
if (!search || !(search->out.response)) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* we need a ldb context to use ldb_ldif_write_file() */
|
||||
ldb = ldb_init(NULL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user