diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-10-22 03:09:59 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-10-22 03:20:09 +0200 |
commit | 7e4e4d09099c5b381a4474dcc94c6a234501b1a9 (patch) | |
tree | 3281fec1d92c0c208e4b9e3bad276a3dd6663007 /source4/libcli | |
parent | 40dc29bca749bdacd5631e74a55d74252e87a4fd (diff) | |
download | samba-7e4e4d09099c5b381a4474dcc94c6a234501b1a9.tar.gz samba-7e4e4d09099c5b381a4474dcc94c6a234501b1a9.tar.bz2 samba-7e4e4d09099c5b381a4474dcc94c6a234501b1a9.zip |
s4:finddcs_cldap: close the socket when it's not used anymore
The amount of possible fd's might be restricted, so close them early.
metze
Diffstat (limited to 'source4/libcli')
-rw-r--r-- | source4/libcli/finddcs_cldap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/libcli/finddcs_cldap.c b/source4/libcli/finddcs_cldap.c index 359ec70c8c..6dd0a2f1a6 100644 --- a/source4/libcli/finddcs_cldap.c +++ b/source4/libcli/finddcs_cldap.c @@ -271,7 +271,8 @@ static void finddcs_cldap_netlogon_replied(struct tevent_req *subreq) state = tevent_req_callback_data(subreq, struct finddcs_cldap_state); status = cldap_netlogon_recv(subreq, state->netlogon, state->netlogon); - talloc_free(subreq); + TALLOC_FREE(subreq); + TALLOC_FREE(state->cldap); if (!NT_STATUS_IS_OK(status)) { state->srv_address_index++; finddcs_cldap_next_server(state); |