Loading apps/s_client.c +4 −4 Original line number Diff line number Diff line Loading @@ -1735,7 +1735,7 @@ int s_client_main(int argc, char **argv) if (init_client(&s, host, port, socket_family, socket_type) == 0) { BIO_printf(bio_err, "connect:errno=%d\n", get_last_socket_error()); SHUTDOWN(s); BIO_closesocket(s); goto end; } BIO_printf(bio_c_out, "CONNECTED(%08X)\n", s); Loading @@ -1753,7 +1753,7 @@ int s_client_main(int argc, char **argv) if (getsockname(s, &peer, (void *)&peerlen) < 0) { BIO_printf(bio_err, "getsockname:errno=%d\n", get_last_socket_error()); SHUTDOWN(s); BIO_closesocket(s); goto end; } Loading Loading @@ -2135,7 +2135,7 @@ int s_client_main(int argc, char **argv) "drop connection and then reconnect\n"); do_ssl_shutdown(con); SSL_set_connect_state(con); SHUTDOWN(SSL_get_fd(con)); BIO_closesocket(SSL_get_fd(con)); goto re_start; } } Loading Loading @@ -2452,7 +2452,7 @@ int s_client_main(int argc, char **argv) if (in_init) print_stuff(bio_c_out, con, full_log); do_ssl_shutdown(con); SHUTDOWN(SSL_get_fd(con)); BIO_closesocket(SSL_get_fd(con)); end: if (con != NULL) { if (prexit != 0) Loading apps/s_server.c +3 −3 Original line number Diff line number Diff line Loading @@ -2245,7 +2245,7 @@ static int sv_body(int s, int stype, unsigned char *context) if ((i <= 0) || (buf[0] == 'Q')) { BIO_printf(bio_s_out, "DONE\n"); (void)BIO_flush(bio_s_out); SHUTDOWN(s); BIO_closesocket(s); close_accept_socket(); ret = -11; goto err; Loading @@ -2254,7 +2254,7 @@ static int sv_body(int s, int stype, unsigned char *context) BIO_printf(bio_s_out, "DONE\n"); (void)BIO_flush(bio_s_out); if (SSL_version(con) != DTLS1_VERSION) SHUTDOWN(s); BIO_closesocket(s); /* * close_accept_socket(); ret= -11; */ Loading Loading @@ -2451,7 +2451,7 @@ static void close_accept_socket(void) { BIO_printf(bio_err, "shutdown accept socket\n"); if (accept_socket >= 0) { SHUTDOWN2(accept_socket); BIO_closesocket(accept_socket); } } Loading apps/s_socket.c +3 −3 Original line number Diff line number Diff line Loading @@ -266,11 +266,11 @@ int do_server(int *accept_sock, const char *host, const char *port, } while (sock < 0 && BIO_sock_should_retry(ret)); if (sock < 0) { ERR_print_errors(bio_err); SHUTDOWN(asock); BIO_closesocket(asock); break; } i = (*cb)(sock, type, context); SHUTDOWN2(sock); BIO_closesocket(sock); } else { i = (*cb)(asock, type, context); } Loading @@ -278,7 +278,7 @@ int do_server(int *accept_sock, const char *host, const char *port, if (naccept != -1) naccept--; if (i < 0 || naccept == 0) { SHUTDOWN2(asock); BIO_closesocket(asock); ret = i; break; } Loading apps/s_time.c +3 −3 Original line number Diff line number Diff line Loading @@ -292,7 +292,7 @@ int s_time_main(int argc, char **argv) #else SSL_shutdown(scon); #endif SHUTDOWN2(SSL_get_fd(scon)); BIO_closesocket(SSL_get_fd(scon)); nConn += 1; if (SSL_session_reused(scon)) Loading Loading @@ -349,7 +349,7 @@ int s_time_main(int argc, char **argv) #else SSL_shutdown(scon); #endif SHUTDOWN2(SSL_get_fd(scon)); BIO_closesocket(SSL_get_fd(scon)); nConn = 0; totalTime = 0.0; Loading Loading @@ -380,7 +380,7 @@ int s_time_main(int argc, char **argv) #else SSL_shutdown(scon); #endif SHUTDOWN2(SSL_get_fd(scon)); BIO_closesocket(SSL_get_fd(scon)); nConn += 1; if (SSL_session_reused(scon)) Loading crypto/bio/bss_dgram.c +1 −1 Original line number Diff line number Diff line Loading @@ -236,7 +236,7 @@ static int dgram_clear(BIO *a) return (0); if (a->shutdown) { if (a->init) { SHUTDOWN2(a->num); BIO_closesocket(a->num); } a->init = 0; a->flags = 0; Loading Loading
apps/s_client.c +4 −4 Original line number Diff line number Diff line Loading @@ -1735,7 +1735,7 @@ int s_client_main(int argc, char **argv) if (init_client(&s, host, port, socket_family, socket_type) == 0) { BIO_printf(bio_err, "connect:errno=%d\n", get_last_socket_error()); SHUTDOWN(s); BIO_closesocket(s); goto end; } BIO_printf(bio_c_out, "CONNECTED(%08X)\n", s); Loading @@ -1753,7 +1753,7 @@ int s_client_main(int argc, char **argv) if (getsockname(s, &peer, (void *)&peerlen) < 0) { BIO_printf(bio_err, "getsockname:errno=%d\n", get_last_socket_error()); SHUTDOWN(s); BIO_closesocket(s); goto end; } Loading Loading @@ -2135,7 +2135,7 @@ int s_client_main(int argc, char **argv) "drop connection and then reconnect\n"); do_ssl_shutdown(con); SSL_set_connect_state(con); SHUTDOWN(SSL_get_fd(con)); BIO_closesocket(SSL_get_fd(con)); goto re_start; } } Loading Loading @@ -2452,7 +2452,7 @@ int s_client_main(int argc, char **argv) if (in_init) print_stuff(bio_c_out, con, full_log); do_ssl_shutdown(con); SHUTDOWN(SSL_get_fd(con)); BIO_closesocket(SSL_get_fd(con)); end: if (con != NULL) { if (prexit != 0) Loading
apps/s_server.c +3 −3 Original line number Diff line number Diff line Loading @@ -2245,7 +2245,7 @@ static int sv_body(int s, int stype, unsigned char *context) if ((i <= 0) || (buf[0] == 'Q')) { BIO_printf(bio_s_out, "DONE\n"); (void)BIO_flush(bio_s_out); SHUTDOWN(s); BIO_closesocket(s); close_accept_socket(); ret = -11; goto err; Loading @@ -2254,7 +2254,7 @@ static int sv_body(int s, int stype, unsigned char *context) BIO_printf(bio_s_out, "DONE\n"); (void)BIO_flush(bio_s_out); if (SSL_version(con) != DTLS1_VERSION) SHUTDOWN(s); BIO_closesocket(s); /* * close_accept_socket(); ret= -11; */ Loading Loading @@ -2451,7 +2451,7 @@ static void close_accept_socket(void) { BIO_printf(bio_err, "shutdown accept socket\n"); if (accept_socket >= 0) { SHUTDOWN2(accept_socket); BIO_closesocket(accept_socket); } } Loading
apps/s_socket.c +3 −3 Original line number Diff line number Diff line Loading @@ -266,11 +266,11 @@ int do_server(int *accept_sock, const char *host, const char *port, } while (sock < 0 && BIO_sock_should_retry(ret)); if (sock < 0) { ERR_print_errors(bio_err); SHUTDOWN(asock); BIO_closesocket(asock); break; } i = (*cb)(sock, type, context); SHUTDOWN2(sock); BIO_closesocket(sock); } else { i = (*cb)(asock, type, context); } Loading @@ -278,7 +278,7 @@ int do_server(int *accept_sock, const char *host, const char *port, if (naccept != -1) naccept--; if (i < 0 || naccept == 0) { SHUTDOWN2(asock); BIO_closesocket(asock); ret = i; break; } Loading
apps/s_time.c +3 −3 Original line number Diff line number Diff line Loading @@ -292,7 +292,7 @@ int s_time_main(int argc, char **argv) #else SSL_shutdown(scon); #endif SHUTDOWN2(SSL_get_fd(scon)); BIO_closesocket(SSL_get_fd(scon)); nConn += 1; if (SSL_session_reused(scon)) Loading Loading @@ -349,7 +349,7 @@ int s_time_main(int argc, char **argv) #else SSL_shutdown(scon); #endif SHUTDOWN2(SSL_get_fd(scon)); BIO_closesocket(SSL_get_fd(scon)); nConn = 0; totalTime = 0.0; Loading Loading @@ -380,7 +380,7 @@ int s_time_main(int argc, char **argv) #else SSL_shutdown(scon); #endif SHUTDOWN2(SSL_get_fd(scon)); BIO_closesocket(SSL_get_fd(scon)); nConn += 1; if (SSL_session_reused(scon)) Loading
crypto/bio/bss_dgram.c +1 −1 Original line number Diff line number Diff line Loading @@ -236,7 +236,7 @@ static int dgram_clear(BIO *a) return (0); if (a->shutdown) { if (a->init) { SHUTDOWN2(a->num); BIO_closesocket(a->num); } a->init = 0; a->flags = 0; Loading