diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2012-11-19 12:36:04 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2012-11-19 12:36:04 +0000 |
commit | 783196963443d89ecf53fb1b450bb1fa5b258381 (patch) | |
tree | 5a61f104486b312fa7c2ea4862612c24097daf0b /apps | |
parent | 9ba297e49f6ca8087d5a2f9322ea193703a74026 (diff) |
don't call gethostbyname if OPENSSL_SSL_DEBUG_BROKEN_PROTOCOL is set
Diffstat (limited to 'apps')
-rw-r--r-- | apps/s_socket.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |