diff options
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r-- | source3/lib/util.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index f11d6f153d..7b2afa8073 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -451,8 +451,11 @@ NTSTATUS reinit_after_fork(struct messaging_context *msg_ctx, goto done; } - if (ev_ctx && tevent_re_initialise(ev_ctx) != 0) { - smb_panic(__location__ ": Failed to re-initialise event context"); + if (ev_ctx != NULL) { + tevent_set_trace_callback(ev_ctx, NULL, NULL); + if (tevent_re_initialise(ev_ctx) != 0) { + smb_panic(__location__ ": Failed to re-initialise event context"); + } } if (reinit_after_fork_pipe[0] != -1) { |