projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ba297e
)
don't call gethostbyname if OPENSSL_SSL_DEBUG_BROKEN_PROTOCOL is set
author
Dr. Stephen Henson
<steve@openssl.org>
Mon, 19 Nov 2012 12:36:04 +0000
(12:36 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Mon, 19 Nov 2012 12:36:04 +0000
(12:36 +0000)
apps/s_socket.c
patch
|
blob
|
history
diff --git
a/apps/s_socket.c
b/apps/s_socket.c
index f73f1931e50529a0495b354aab8dac9410c25acf..d83eecb6dedfae47b6a4f2175f533f22b59c8292 100644
(file)
--- 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);