]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tevent: Re-init threading in tevent_re_initialise
authorVolker Lendecke <vl@samba.org>
Mon, 5 Jun 2017 05:16:17 +0000 (07:16 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 8 Jun 2017 18:38:19 +0000 (20:38 +0200)
Without this threading is not usable after that call

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/tevent/tevent.c

index 68b9db605f3584bdcfff3cd320acde7652f5ee6d..7d59c8b1a83319169ebe85c34411a17bf473d6ac 100644 (file)
@@ -884,6 +884,8 @@ int tevent_re_initialise(struct tevent_context *ev)
 {
        tevent_common_context_destructor(ev);
 
+       tevent_common_context_constructor(ev);
+
        return ev->ops->context_init(ev);
 }