summaryrefslogtreecommitdiff
path: root/app/openssl/apps/s_socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/openssl/apps/s_socket.c')
-rw-r--r--app/openssl/apps/s_socket.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/openssl/apps/s_socket.c b/app/openssl/apps/s_socket.c
index c08544a1..380efdb1 100644
--- a/app/openssl/apps/s_socket.c
+++ b/app/openssl/apps/s_socket.c
@@ -238,11 +238,10 @@ int init_client(int *sock, char *host, int port, int type)
{
unsigned char ip[4];
+ memset(ip, '\0', sizeof ip);
if (!host_ip(host,&(ip[0])))
- {
- return(0);
- }
- return(init_client_ip(sock,ip,port,type));
+ return 0;
+ return init_client_ip(sock,ip,port,type);
}
static int init_client_ip(int *sock, unsigned char ip[4], int port, int type)