mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s4:finddcs_cldap: talloc free old memory before allocating a new netlogon struct
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Oct 22 04:55:54 CEST 2011 on sn-devel-104
This commit is contained in:
parent
7e4e4d0909
commit
60d9afa806
@ -227,6 +227,7 @@ static void finddcs_cldap_next_server(struct finddcs_cldap_state *state)
|
||||
return;
|
||||
}
|
||||
|
||||
TALLOC_FREE(state->netlogon);
|
||||
state->netlogon = talloc_zero(state, struct cldap_netlogon);
|
||||
if (tevent_req_nomem(state->netlogon, state->req)) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user