From 27710655f7fcad48c0cec81e03bdae5717ff70ea Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Sun, 13 Apr 2014 23:58:19 +0000 Subject: Use shutdown(s, SHUT_RDWR) instead of shutdown(s, 2). ok beck deraadt --- lib/libcrypto/bio/bss_acpt.c | 2 +- lib/libcrypto/bio/bss_conn.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libcrypto/bio/bss_acpt.c b/lib/libcrypto/bio/bss_acpt.c index 5507a53a2fa..04bfb6fb9de 100644 --- a/lib/libcrypto/bio/bss_acpt.c +++ b/lib/libcrypto/bio/bss_acpt.c @@ -172,7 +172,7 @@ static void acpt_close_socket(BIO *bio) c=(BIO_ACCEPT *)bio->ptr; if (c->accept_sock != -1) { - shutdown(c->accept_sock,2); + shutdown(c->accept_sock, SHUT_RDWR); close(c->accept_sock); c->accept_sock=-1; bio->num=-1; diff --git a/lib/libcrypto/bio/bss_conn.c b/lib/libcrypto/bio/bss_conn.c index bdf540030c8..42ddf1f4aad 100644 --- a/lib/libcrypto/bio/bss_conn.c +++ b/lib/libcrypto/bio/bss_conn.c @@ -375,7 +375,7 @@ static void conn_close_socket(BIO *bio) { /* Only do a shutdown if things were established */ if (c->state == BIO_CONN_S_OK) - shutdown(bio->num,2); + shutdown(bio->num, SHUT_RDWR); close(bio->num); bio->num=-1; } -- cgit v1.2.3