diff options
author | Ben Laurie <ben@openssl.org> | 2011-12-02 14:39:41 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2011-12-02 14:39:41 +0000 |
commit | 825e1a7c56c5a03efcdba63ac9f0f348037bf02f (patch) | |
tree | aeefe58a1d59119be396ff668d657110539dfba8 /apps | |
parent | 9f2b453338dcbb94bc4ea4f8df27e156712b77c6 (diff) |
Fix warnings.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/s_socket.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/s_socket.c b/apps/s_socket.c index c08544a13c..380efdb1b9 100644 --- a/apps/s_socket.c +++ b/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) |