summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/rpc_server.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/source3/rpc_server/rpc_server.c b/source3/rpc_server/rpc_server.c
index 2168f67909..6f3d72d756 100644
--- a/source3/rpc_server/rpc_server.c
+++ b/source3/rpc_server/rpc_server.c
@@ -940,15 +940,11 @@ static void dcerpc_ncalrpc_listener(struct tevent_context *ev,
ZERO_STRUCT(sunaddr);
- while (sd == -1) {
- sd = accept(state->fd, addr, &len);
- if (sd == -1 && errno != EINTR) {
- break;
- }
- }
-
+ sd = accept(state->fd, addr, &len);
if (sd == -1) {
- DEBUG(0, ("ncalrpc accept() failed: %s\n", strerror(errno)));
+ if (errno != EINTR) {
+ DEBUG(0, ("ncalrpc accept() failed: %s\n", strerror(errno)));
+ }
return;
}