lsasd: Fix CID 1107233 Double close
authorVolker Lendecke <vl@samba.org>
Sun, 20 Oct 2013 15:37:08 +0000 (17:37 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 21 Oct 2013 08:55:31 +0000 (08:55 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/rpc_server/lsasd.c

index 8d2245abb5fb91c1525dd2de81e53c2018737de3..0a7e4ff312fec48b70c3f1e8542ccd08936cb247 100644 (file)
@@ -808,7 +808,6 @@ static bool lsasd_create_sockets(struct tevent_context *ev_ctx,
        if (rc == -1) {
                DEBUG(0, ("Failed to listen on netlogon ncalrpc - %s\n",
                          strerror(errno)));
-               close(fd);
                ok = false;
                goto done;
        }