diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2014-04-13 23:58:19 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2014-04-13 23:58:19 +0000 |
commit | 27710655f7fcad48c0cec81e03bdae5717ff70ea (patch) | |
tree | 4767c88f58ef8e510c3b741aa55e1bcb7cddd3e7 | |
parent | 20c3ed7358abad8fe9d1eb6581cb13e465b94342 (diff) |
Use shutdown(s, SHUT_RDWR) instead of shutdown(s, 2).
ok beck deraadt
-rw-r--r-- | lib/libcrypto/bio/bss_acpt.c | 2 | ||||
-rw-r--r-- | 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; } |