1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

tevent: allow the "standard" backend to be overloaded

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 <metze@samba.org>
Reviewed-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
Stefan Metzmacher 2022-11-12 15:27:30 +00:00
parent 147a317b7b
commit ab49d9ee4e

View File

@ -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;