summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-03-03 15:07:02 +0100
committerGünther Deschner <gd@samba.org>2011-03-08 11:41:30 +0100
commit07e8904a5b4e10b8c4424ab34a826573f52f0820 (patch)
tree8949ef832b2494527efff25db7128e1f63c856f1 /source3
parent9dc27cb5b24ea5c25cdd29d9334b55ed5617168c (diff)
downloadsamba-07e8904a5b4e10b8c4424ab34a826573f52f0820.tar.gz
samba-07e8904a5b4e10b8c4424ab34a826573f52f0820.tar.bz2
samba-07e8904a5b4e10b8c4424ab34a826573f52f0820.zip
s3-rpc_server: Fixed the accept() for tcpip_listener.
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/rpc_server.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/source3/rpc_server/rpc_server.c b/source3/rpc_server/rpc_server.c
index 47e223c00a..2168f67909 100644
--- a/source3/rpc_server/rpc_server.c
+++ b/source3/rpc_server/rpc_server.c
@@ -796,16 +796,12 @@ static void dcerpc_ncacn_tcpip_listener(struct tevent_context *ev,
int s = -1;
int rc;
- while (s == -1) {
- s = accept(state->fd, (struct sockaddr *)(void *) &addr, &in_addrlen);
- if (s == -1 && errno != EINTR) {
- break;
- }
- }
-
+ s = accept(state->fd, (struct sockaddr *)(void *) &addr, &in_addrlen);
if (s == -1) {
- DEBUG(0,("tcpip_listener accept: %s\n",
- strerror(errno)));
+ if (errno != EINTR) {
+ DEBUG(0,("tcpip_listener accept: %s\n",
+ strerror(errno)));
+ }
return;
}