diff options
author | Tim Hudson <tjh@cryptsoft.com> | 2014-05-05 10:39:30 +1000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2014-05-08 23:08:33 +0100 |
commit | 8e94fadd0b79491714401d89b338db27211b9819 (patch) | |
tree | 5697d64a9b6a12c0328d308f861713280bd6849a /apps/s_socket.c | |
parent | 630f9fc69dc383193b11c48725926b661c12dedb (diff) |
PR#3342 fix resource leak coverity issue 966577
Diffstat (limited to 'apps/s_socket.c')
-rw-r--r-- | apps/s_socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/s_socket.c b/apps/s_socket.c index e0dbc5a90a..1841607ef5 100644 --- a/apps/s_socket.c +++ b/apps/s_socket.c @@ -270,7 +270,7 @@ static int init_client_ip(int *sock, const unsigned char ip[4], int port, { i=0; i=setsockopt(s,SOL_SOCKET,SO_KEEPALIVE,(char *)&i,sizeof(i)); - if (i < 0) { perror("keepalive"); return(0); } + if (i < 0) { closesocket(s); perror("keepalive"); return(0); } } #endif |