git.samba.org
/
rusty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40dc29b
)
s4:finddcs_cldap: close the socket when it's not used anymore
author
Stefan Metzmacher
<metze@samba.org>
Sat, 22 Oct 2011 01:09:59 +0000
(
03:09
+0200)
committer
Stefan Metzmacher
<metze@samba.org>
Sat, 22 Oct 2011 01:20:09 +0000
(
03:20
+0200)
The amount of possible fd's might be restricted, so close them early.
metze
source4/libcli/finddcs_cldap.c
patch
|
blob
|
history
diff --git
a/source4/libcli/finddcs_cldap.c
b/source4/libcli/finddcs_cldap.c
index 359ec70c8c5d77be8a02b1953d3719cfa167d8e2..6dd0a2f1a65c91e0f991702a6e438885c68cad97 100644
(file)
--- 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);