Deleted Added
full compact
s_socket.c (109998) s_socket.c (127128)
1/* apps/s_socket.c - socket-related functions used by s_client and s_server */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 375 unchanged lines hidden (view full) ---

384 }
385 else
386 {
387 if ((*host=(char *)OPENSSL_malloc(strlen(h1->h_name)+1)) == NULL)
388 {
389 perror("OPENSSL_malloc");
390 return(0);
391 }
1/* apps/s_socket.c - socket-related functions used by s_client and s_server */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 375 unchanged lines hidden (view full) ---

384 }
385 else
386 {
387 if ((*host=(char *)OPENSSL_malloc(strlen(h1->h_name)+1)) == NULL)
388 {
389 perror("OPENSSL_malloc");
390 return(0);
391 }
392 strcpy(*host,h1->h_name);
392 BUF_strlcpy(*host,h1->h_name,strlen(h1->h_name)+1);
393
394 h2=GetHostByName(*host);
395 if (h2 == NULL)
396 {
397 BIO_printf(bio_err,"gethostbyname failure\n");
398 return(0);
399 }
400 i=0;

--- 155 unchanged lines hidden ---
393
394 h2=GetHostByName(*host);
395 if (h2 == NULL)
396 {
397 BIO_printf(bio_err,"gethostbyname failure\n");
398 return(0);
399 }
400 i=0;

--- 155 unchanged lines hidden ---