Marcus Meissner : server: Removed duplicate close of acceptfd (Coverity).

Alexandre Julliard julliard at winehq.org
Wed Oct 10 15:07:51 CDT 2012


Module: wine
Branch: master
Commit: 3199fe147de2bf48aca48eba3a75be1b500b2030
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3199fe147de2bf48aca48eba3a75be1b500b2030

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Wed Oct 10 10:06:55 2012 +0200

server: Removed duplicate close of acceptfd (Coverity).

---

 server/sock.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/server/sock.c b/server/sock.c
index 7e4acd8..7dcc101 100644
--- a/server/sock.c
+++ b/server/sock.c
@@ -760,10 +760,7 @@ static int accept_into_socket( struct sock *sock, struct sock *acceptsock )
 
         if (!(newfd = create_anonymous_fd( &sock_fd_ops, acceptfd, &acceptsock->obj,
                                             get_fd_options( acceptsock->fd ) )))
-        {
-            close( acceptfd );
             return FALSE;
-        }
     }
 
     acceptsock->state  |= FD_WINE_CONNECTED|FD_READ|FD_WRITE;




More information about the wine-cvs mailing list