diff --git a/source3/rpc_server/rpc_host.c b/source3/rpc_server/rpc_host.c index 92222dd17d4..ab9ad33c562 100644 --- a/source3/rpc_server/rpc_host.c +++ b/source3/rpc_server/rpc_host.c @@ -967,6 +967,8 @@ static struct tevent_req *rpc_host_bind_read_send( close(sock_dup); return tevent_req_post(req, ev); } + /* as server we want to fail early */ + tstream_bsd_fail_readv_first_error(state->plain, true); if (transport == NCACN_NP) { subreq = tstream_npa_accept_existing_send( diff --git a/source3/rpc_server/rpc_worker.c b/source3/rpc_server/rpc_worker.c index e923110940d..8ed7444e003 100644 --- a/source3/rpc_server/rpc_worker.c +++ b/source3/rpc_server/rpc_worker.c @@ -390,6 +390,8 @@ static void rpc_worker_new_client( strerror(errno)); goto fail; } + /* as server we want to fail early */ + tstream_bsd_fail_readv_first_error(tstream, true); } sock = -1;