From: Dr. Stephen Henson Date: Mon, 19 Nov 2012 12:36:04 +0000 (+0000) Subject: don't call gethostbyname if OPENSSL_SSL_DEBUG_BROKEN_PROTOCOL is set X-Git-Tag: master-post-reformat~1601 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=783196963443d89ecf53fb1b450bb1fa5b258381;p=oweals%2Fopenssl.git don't call gethostbyname if OPENSSL_SSL_DEBUG_BROKEN_PROTOCOL is set --- diff --git a/apps/s_socket.c b/apps/s_socket.c index f73f1931e5..d83eecb6de 100644 --- a/apps/s_socket.c +++ b/apps/s_socket.c @@ -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);