From 881f617541ac034d6c3fd7977456c4a3418f9786 Mon Sep 17 00:00:00 2001 From: tb <> Date: Tue, 6 Feb 2018 02:40:29 +0000 Subject: Remove manual shutdown and close of the socket since in this case SSL_free will do this a second time. ok jsing --- src/usr.bin/openssl/s_time.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src') diff --git a/src/usr.bin/openssl/s_time.c b/src/usr.bin/openssl/s_time.c index 320380552b..a533679776 100644 --- a/src/usr.bin/openssl/s_time.c +++ b/src/usr.bin/openssl/s_time.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_time.c,v 1.20 2018/01/07 08:43:26 inoguchi Exp $ */ +/* $OpenBSD: s_time.c,v 1.21 2018/02/06 02:40:29 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -353,8 +353,6 @@ s_time_main(int argc, char **argv) SSL_RECEIVED_SHUTDOWN); else SSL_shutdown(scon); - shutdown(SSL_get_fd(scon), SHUT_RDWR); - close(SSL_get_fd(scon)); nConn += 1; if (SSL_session_reused(scon)) @@ -415,8 +413,6 @@ next: SSL_RECEIVED_SHUTDOWN); else SSL_shutdown(scon); - shutdown(SSL_get_fd(scon), SHUT_RDWR); - close(SSL_get_fd(scon)); nConn = 0; totalTime = 0.0; @@ -449,8 +445,6 @@ next: SSL_RECEIVED_SHUTDOWN); else SSL_shutdown(scon); - shutdown(SSL_get_fd(scon), SHUT_RDWR); - close(SSL_get_fd(scon)); nConn += 1; if (SSL_session_reused(scon)) -- cgit v1.2.3-55-g6feb