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:22:21 +0100 |
commit | 62cc5ff62303e97aeeab38e48b49d46c1e57ce98 (patch) | |
tree | b5bc9d68a2b7fca73d6f0b2101fa3d15494b2e37 /apps | |
parent | afe343c3a7077caeaad43a9f2ee7e5d7f70076e5 (diff) |
PR#3342 fix resource leak coverity issue 966577
Diffstat (limited to 'apps')
-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 e0de63c8f1..a7fa28b7d9 100644 --- a/apps/s_socket.c +++ b/apps/s_socket.c @@ -274,7 +274,7 @@ static int init_client_ip(int *sock, unsigned char ip[4], int port, int type) { 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 |