mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
r10529: fix a crash bug in full async code the uses the composite_trigger_done() code
the event subsystem wants to free timed_events! metze (This used to be commit dc5d5953b60662b895ad148525e84d82882d62a8)
This commit is contained in:
parent
42b81d7c3e
commit
fa70d1d0c2
@ -52,6 +52,12 @@ static void composite_trigger(struct event_context *ev, struct timed_event *te,
|
||||
{
|
||||
struct composite_context *c = talloc_get_type(ptr, struct composite_context);
|
||||
if (c->async.fn) {
|
||||
/*
|
||||
* the event is a child of req,
|
||||
* and req will be free'ed by the callback fn
|
||||
* but the events code wants to free the event itself
|
||||
*/
|
||||
talloc_steal(ev, te);
|
||||
c->async.fn(c);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user