Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
#ifdef HAVE_PTHREAD
const char *create_location = im->create_location;
struct tevent_context *main_ev = NULL;
- struct tevent_wrapper_glue *glue = tctx->event_ctx->wrapper.glue;
+ struct tevent_wrapper_glue *glue = NULL;
int ret, wakeup_fd;
ret = pthread_mutex_lock(&tctx->event_ctx_mutex);
return;
}
+ glue = tctx->event_ctx->wrapper.glue;
+
if ((im->event_ctx != NULL) || (handler == NULL)) {
abort();
}