New compile time option OPENSSL_SSL_TRACE_CRYPTO, when set this passes
[oweals/openssl.git] / apps / s_socket.c
index 2fff09f850d24597f5891abafa4e7fc38f276c71..6dd736af01f2e09359bc3bfa44c28cf3f1cbe2b8 100644 (file)
@@ -233,11 +233,10 @@ int init_client(int *sock, char *host, int port, int type)
        {
        unsigned char ip[4];
 
+       ip[0] = ip[1] = ip[2] = ip[3] = 0;
        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, const unsigned char ip[4], int port,