Do not close an fd we know is -1
authorVolker Lendecke <vl@samba.org>
Sat, 14 Feb 2009 12:43:09 +0000 (13:43 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 21 Feb 2009 11:54:06 +0000 (12:54 +0100)
source3/smbd/server.c

index 28ce80b6c80640554f4d6c35756121fc70817645..49995d8901edf453fabfa29aa1a7c88ba5956204 100644 (file)
@@ -447,7 +447,6 @@ static bool smbd_open_one_socket(struct smbd_parent_context *parent,
        if (s->fd == -1) {
                DEBUG(0,("smbd_open_once_socket: open_socket_in: "
                        "%s\n", strerror(errno)));
-                       close(s->fd);
                TALLOC_FREE(s);
                /*
                 * We ignore an error here, as we've done before