projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1535ff9
)
PR#3342 fix resource leak coverity issue 966577
author
Tim Hudson
<tjh@cryptsoft.com>
Mon, 5 May 2014 00:39:30 +0000
(10:39 +1000)
committer
Matt Caswell
<matt@openssl.org>
Thu, 8 May 2014 22:24:51 +0000
(23:24 +0100)
apps/s_socket.c
patch
|
blob
|
history
diff --git
a/apps/s_socket.c
b/apps/s_socket.c
index c08544a13cbb5413f6eefd8718f3def000c38f5b..043c55e1ffc4eb299f01917d15776d8c0310e717 100644
(file)
--- a/
apps/s_socket.c
+++ b/
apps/s_socket.c
@@
-275,7
+275,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