diff options
author | 2014-10-20 01:58:10 +0000 | |
---|---|---|
committer | 2014-10-20 01:58:10 +0000 | |
commit | bf6b5f74bdd521b1c141af1938891dba8b8eff00 (patch) | |
tree | a3039de182a5b67022dad5c4c8f1ec32f657c1cc | |
parent | show the {MDOC,MAN}_EQN node, it contains interesting information, (diff) | |
download | wireguard-openbsd-bf6b5f74bdd521b1c141af1938891dba8b8eff00.tar.xz wireguard-openbsd-bf6b5f74bdd521b1c141af1938891dba8b8eff00.zip |
s_client: don't call shutdown on a non-existent socket descriptor.
from Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
ok beck@, deraadt@
-rw-r--r-- | usr.bin/openssl/s_client.c | 4 |
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); |