diff options
author | Simo Sorce <idra@samba.org> | 2006-05-21 23:57:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:08:20 -0500 |
commit | efa3803335e85fab6cbd93c33353c7e3db624afa (patch) | |
tree | ddcea7daf23340c37c6b3188d441de131ae4e44c /source4/torture/ldap | |
parent | f376b6c38644d344734c8797e9ac05b4825e02ce (diff) | |
download | samba-efa3803335e85fab6cbd93c33353c7e3db624afa.tar.gz samba-efa3803335e85fab6cbd93c33353c7e3db624afa.tar.bz2 samba-efa3803335e85fab6cbd93c33353c7e3db624afa.zip |
r15788: Do not crash when no result is returned
(This used to be commit efb7e39e512eb71deaeef1315bc88a902e5cd848)
Diffstat (limited to 'source4/torture/ldap')
-rw-r--r-- | source4/torture/ldap/cldap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/torture/ldap/cldap.c b/source4/torture/ldap/cldap.c index 78bc6063a5..45d758547d 100644 --- a/source4/torture/ldap/cldap.c +++ b/source4/torture/ldap/cldap.c @@ -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); |