1
0
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 efb7e39e512eb71deaeef1315bc88a902e5cd848)
This commit is contained in:
Simo Sorce 2006-05-21 23:57:19 +00:00 committed by Gerald (Jerry) Carter
parent f376b6c386
commit efa3803335

View File

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