s4-dreplsrv: Do allocations on long-living context so that callback gets called
authorKamen Mazdrashki <kamenim@samba.org>
Wed, 8 Sep 2010 22:43:01 +0000 (01:43 +0300)
committerKamen Mazdrashki <kamenim@samba.org>
Thu, 9 Sep 2010 15:26:51 +0000 (18:26 +0300)
source4/dsdb/kcc/kcc_periodic.c

index 28ff4047488cb64013239a196cca63a18bd15cbb..a79c848567409ba35c6788ea61ef0a1835051391 100644 (file)
@@ -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;
        }