From 3199fe147de2bf48aca48eba3a75be1b500b2030 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 10 Oct 2012 10:06:55 +0200 Subject: [PATCH] server: Removed duplicate close of acceptfd (Coverity). --- server/sock.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/server/sock.c b/server/sock.c index 7e4acd8dab5..7dcc1013679 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;