1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s4/ildap: fine tune ildb_callback()

Actually ildb_context pointer is not supposed to be
valid after calling ildb_request_done().
This is due to the fact that when calling ildb_request_done()
caller will (most probably) free any locally built
ldap_request objects - thus rendering ildb_context invalid.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Kamen Mazdrashki 2010-03-03 02:33:31 +02:00 committed by Andrew Bartlett
parent e3c2e1a303
commit 5338e42182

View File

@ -383,13 +383,13 @@ static void ildb_callback(struct ldap_request *req)
}
}
/* mark the request as not being in progress */
ac->in_ildb_callback = false;
if (request_done) {
ildb_request_done(ac, controls, ret);
}
/* unmark the request as beign in progress */
ac->in_ildb_callback = false;
return;
}