From ab49d9ee4ee463f67f0986999e7da6fab72d28ed Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 12 Nov 2022 15:27:30 +0000 Subject: [PATCH] tevent: allow the "standard" backend to be overloaded MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We'll export tevent_find_ops_byname() soon and will allow the context_init() function of backends to find that standard ops and hand over to standard_ops->context_init(). Signed-off-by: Stefan Metzmacher Reviewed-by: Pavel Filipenský Reviewed-by: Volker Lendecke --- lib/tevent/tevent_standard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tevent/tevent_standard.c b/lib/tevent/tevent_standard.c index 38720204e02..749cad0db77 100644 --- a/lib/tevent/tevent_standard.c +++ b/lib/tevent/tevent_standard.c @@ -166,7 +166,7 @@ static int std_event_context_init(struct tevent_context *ev) * pointers. */ - if (ev->ops == &std_event_ops) { + if (ev->ops->loop_once == NULL) { glue = talloc_zero(ev, struct std_event_glue); if (glue == NULL) { return -1;