summaryrefslogtreecommitdiffstats
path: root/source4/librpc/rpc/pyrpc_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/librpc/rpc/pyrpc_util.c')
-rw-r--r--source4/librpc/rpc/pyrpc_util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/librpc/rpc/pyrpc_util.c b/source4/librpc/rpc/pyrpc_util.c
index 314ad2cc8d7..226c884d3ef 100644
--- a/source4/librpc/rpc/pyrpc_util.c
+++ b/source4/librpc/rpc/pyrpc_util.c
@@ -83,6 +83,12 @@ static NTSTATUS pyrpc_irpc_connect(TALLOC_CTX *mem_ctx, const char *irpc_server,
return NT_STATUS_INVALID_PIPE_STATE;
}
+ /*
+ * Note: this allows nested event loops to happen,
+ * but as there's no top level event loop it's not that critical.
+ */
+ dcerpc_binding_handle_set_sync_ev(*binding_handle, event_ctx);
+
return NT_STATUS_OK;
}