提交 78319696 编写于 作者: D Dr. Stephen Henson

don't call gethostbyname if OPENSSL_SSL_DEBUG_BROKEN_PROTOCOL is set

上级 9ba297e4
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册