summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-09-09 01:43:01 +0300
committerKamen Mazdrashki <kamenim@samba.org>2010-09-09 18:26:51 +0300
commit4f5dd3f93b96429baa85ec3ef730ea4bdc2b7945 (patch)
tree9ec82facbde940fb8cd7f5d1b341a01efda710f6
parent118df599ce139d72f77692415ab38efaebf0245c (diff)
downloadsamba-4f5dd3f93b96429baa85ec3ef730ea4bdc2b7945.tar.gz
samba-4f5dd3f93b96429baa85ec3ef730ea4bdc2b7945.tar.bz2
samba-4f5dd3f93b96429baa85ec3ef730ea4bdc2b7945.zip
s4-dreplsrv: Do allocations on long-living context so that callback gets called
-rw-r--r--source4/dsdb/kcc/kcc_periodic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/kcc/kcc_periodic.c b/source4/dsdb/kcc/kcc_periodic.c
index 28ff404748..a79c848567 100644
--- a/source4/dsdb/kcc/kcc_periodic.c
+++ b/source4/dsdb/kcc/kcc_periodic.c
@@ -113,7 +113,7 @@ static void kccsrv_notify_drepl_server(struct kccsrv_service *s,
struct dcerpc_binding_handle *irpc_handle;
struct tevent_req *subreq;
- state = talloc_zero(mem_ctx, struct kccsrv_notify_drepl_server_state);
+ state = talloc_zero(s, struct kccsrv_notify_drepl_server_state);
if (state == NULL) {
return;
}