projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
PR#3342 fix resource leak coverity issue 966577
[oweals/openssl.git]
/
apps
/
s_socket.c
diff --git
a/apps/s_socket.c
b/apps/s_socket.c
index 380efdb1b9762d28e8bc9f32fe0e4d1c76470435..d49837a40557af6757a2bfdb32f27ca61872d89e 100644
(file)
--- 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