summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-09-28 02:13:12 +0200
committerStefan Metzmacher <metze@samba.org>2010-09-28 03:48:10 +0200
commit9d8b886b3e631e073b12c559948f53bdbba87339 (patch)
tree408077960c717bcc60380646babb3ad294d41b8d
parentd7c09f312ee326c3108c7d06bc9c7390861d8552 (diff)
downloadsamba-9d8b886b3e631e073b12c559948f53bdbba87339.tar.gz
s4:rpc_server: use SOCKET_FLAG_NOCLOSE to avoid calling close() on the socket fd twice.
metze
-rw-r--r--source4/rpc_server/service_rpc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/rpc_server/service_rpc.c b/source4/rpc_server/service_rpc.c
index 36e6a54cc80..d221639bd27 100644
--- a/source4/rpc_server/service_rpc.c
+++ b/source4/rpc_server/service_rpc.c
@@ -203,6 +203,7 @@ static void dcesrv_sock_accept(struct stream_connection *srv_conn)
stream_terminate_connection(srv_conn, nt_errstr(status));
return;
}
+ socket_set_flags(srv_conn->socket, SOCKET_FLAG_NOCLOSE);
}
dcesrv_conn->local_address = srv_conn->local_address;