diff options
author | Andreas Schneider <asn@samba.org> | 2011-03-03 15:07:16 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-03-08 11:41:31 +0100 |
commit | 69a9b9b8d0ea0d9566b306fca23bc241b8e35125 (patch) | |
tree | de3b28e71eccda50ae51f062d62ea335890b2ce8 | |
parent | 07e8904a5b4e10b8c4424ab34a826573f52f0820 (diff) | |
download | samba-69a9b9b8d0ea0d9566b306fca23bc241b8e35125.tar.gz samba-69a9b9b8d0ea0d9566b306fca23bc241b8e35125.tar.bz2 samba-69a9b9b8d0ea0d9566b306fca23bc241b8e35125.zip |
s3-rpc_server: Fixed the accept() for ncalrpc_listener.
Signed-off-by: Günther Deschner <gd@samba.org>
-rw-r--r-- | source3/rpc_server/rpc_server.c | 12 |
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; } |