summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-09-15 12:22:48 +1000
committerAndrew Tridgell <tridge@samba.org>2010-09-15 15:39:36 +1000
commitbeb9c6be70bcbd04c087c8352cf480e4f869448f (patch)
tree6831231dfe90ae52f14f45ae1f60f8155fc61a01 /source4/libcli
parentfcf576f002cc2b6dc7e3ecc3533572adcfcb1ffe (diff)
downloadsamba-beb9c6be70bcbd04c087c8352cf480e4f869448f.tar.gz
samba-beb9c6be70bcbd04c087c8352cf480e4f869448f.tar.bz2
samba-beb9c6be70bcbd04c087c8352cf480e4f869448f.zip
s4-finddcs: ensure we free previous cldap requests before starting a new one
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/finddcs_cldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/finddcs_cldap.c b/source4/libcli/finddcs_cldap.c
index ec3bc25fb1..33e31a9cf7 100644
--- a/source4/libcli/finddcs_cldap.c
+++ b/source4/libcli/finddcs_cldap.c
@@ -214,6 +214,7 @@ 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);
if (!NT_STATUS_IS_OK(status)) {
state->srv_address_index++;
finddcs_cldap_next_server(state);
@@ -231,7 +232,6 @@ static void finddcs_cldap_netlogon_replied(struct tevent_req *subreq)
return;
}
- talloc_free(subreq);
tevent_req_done(state->req);
}