s4-drepl: Schedule event to trigger replication rather than calling run_pending_ops...
authorKamen Mazdrashki <kamenim@samba.org>
Sat, 26 Feb 2011 21:13:49 +0000 (23:13 +0200)
committerKamen Mazdrashki <kamenim@samba.org>
Sat, 26 Feb 2011 22:23:18 +0000 (00:23 +0200)
commit1ca2ec1188098c051fe7ab6d44c9b1cd1f802b18
tree284f303a90d8c62f6326b6e98fc8de4f571a4977
parent05c90d2fa696517612051a8e7c7dc765723e71f5
s4-drepl: Schedule event to trigger replication rather than calling run_pending_ops directly

Executing dreplsrv_run_pending_ops() directly may cause a segfault
as in case of failure, the _drepl_replica_sync_done_cb() callback
gets called *before* drepl_replica_sync() returns. In such case,
irpc message gets freed twice - once when irpc_send_reply() gets called
and once when drepl_replica_sync() returns
source4/dsdb/repl/drepl_service.c