mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
don't call gethostbyname if OPENSSL_SSL_DEBUG_BROKEN_PROTOCOL is set
This commit is contained in:
parent
9ba297e49f
commit
7831969634
@ -298,7 +298,11 @@ int do_server(int port, int type, int *ret, int (*cb)(char *hostname, int s, uns
|
||||
{
|
||||
if (type==SOCK_STREAM)
|
||||
{
|
||||
#ifdef OPENSSL_SSL_DEBUG_BROKEN_PROTOCOL
|
||||
if (do_accept(accept_socket,&sock,NULL) == 0)
|
||||
#else
|
||||
if (do_accept(accept_socket,&sock,&name) == 0)
|
||||
#endif
|
||||
{
|
||||
SHUTDOWN(accept_socket);
|
||||
return(0);
|
||||
|
Loading…
Reference in New Issue
Block a user