summaryrefslogtreecommitdiff
path: root/usr.bin/openssl/s_client.c
diff options
context:
space:
mode:
authorBrent Cook <bcook@cvs.openbsd.org>2014-10-20 01:58:11 +0000
committerBrent Cook <bcook@cvs.openbsd.org>2014-10-20 01:58:11 +0000
commit1e42cca21472fabac95743c241b888fb8d4bfef9 (patch)
tree719e8b20ff7c655e6144f0d70cf74c17143edeaa /usr.bin/openssl/s_client.c
parent062550907f527e7daf82c77bd52c1079e6473f6c (diff)
s_client: don't call shutdown on a non-existent socket descriptor.
from Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> ok beck@, deraadt@
Diffstat (limited to 'usr.bin/openssl/s_client.c')
-rw-r--r--usr.bin/openssl/s_client.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/openssl/s_client.c b/usr.bin/openssl/s_client.c
index dba1336f76a..a5f4d4c9c6e 100644
--- a/usr.bin/openssl/s_client.c
+++ b/usr.bin/openssl/s_client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s_client.c,v 1.3 2014/10/13 02:39:09 bcook Exp $ */
+/* $OpenBSD: s_client.c,v 1.4 2014/10/20 01:58:10 bcook Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -822,8 +822,6 @@ re_start:
if (init_client(&s, host, port, socket_type, af) == 0) {
BIO_printf(bio_err, "connect:errno=%d\n", errno);
- shutdown(s, SHUT_RD);
- close(s);
goto end;
}
BIO_printf(bio_c_out, "CONNECTED(%08X)\n", s);