summaryrefslogtreecommitdiff
path: root/source3/rpc_server/mdssd.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpc_server/mdssd.c')
-rw-r--r--source3/rpc_server/mdssd.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source3/rpc_server/mdssd.c b/source3/rpc_server/mdssd.c
index 62448577b9d..0c44b010aae 100644
--- a/source3/rpc_server/mdssd.c
+++ b/source3/rpc_server/mdssd.c
@@ -500,7 +500,6 @@ static NTSTATUS mdssd_create_sockets(struct tevent_context *ev_ctx,
size_t *pnum_listen_fds)
{
NTSTATUS status;
- int fd = -1;
size_t i, num_fds;
struct pf_listen_fd *fds = NULL;
int rc;
@@ -551,9 +550,6 @@ static NTSTATUS mdssd_create_sockets(struct tevent_context *ev_ctx,
status = NT_STATUS_OK;
done:
- if (fd != -1) {
- close(fd);
- }
return status;
}