diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-09-28 02:13:12 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-09-28 03:48:10 +0200 |
commit | 9d8b886b3e631e073b12c559948f53bdbba87339 (patch) | |
tree | 408077960c717bcc60380646babb3ad294d41b8d /source4/rpc_server | |
parent | d7c09f312ee326c3108c7d06bc9c7390861d8552 (diff) | |
download | samba-9d8b886b3e631e073b12c559948f53bdbba87339.tar.gz samba-9d8b886b3e631e073b12c559948f53bdbba87339.tar.xz samba-9d8b886b3e631e073b12c559948f53bdbba87339.zip |
s4:rpc_server: use SOCKET_FLAG_NOCLOSE to avoid calling close() on the socket fd twice.
metze
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/service_rpc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/rpc_server/service_rpc.c b/source4/rpc_server/service_rpc.c index 36e6a54cc8..d221639bd2 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; |