diff options
| author | matthew <> | 2014-04-13 23:58:18 +0000 |
|---|---|---|
| committer | matthew <> | 2014-04-13 23:58:18 +0000 |
| commit | 8905254b6b6f50bd8b0a2d7a0eb9c0d85e36a2cf (patch) | |
| tree | 835f053585fbe510fa3f8d525e11695edf779f56 /src/lib/libssl/src | |
| parent | c25e862c375209c119ed7f44041371dc8f6488a8 (diff) | |
| download | openbsd-8905254b6b6f50bd8b0a2d7a0eb9c0d85e36a2cf.tar.gz openbsd-8905254b6b6f50bd8b0a2d7a0eb9c0d85e36a2cf.tar.bz2 openbsd-8905254b6b6f50bd8b0a2d7a0eb9c0d85e36a2cf.zip | |
Use shutdown(s, SHUT_RDWR) instead of shutdown(s, 2).
ok beck deraadt
Diffstat (limited to 'src/lib/libssl/src')
| -rw-r--r-- | src/lib/libssl/src/crypto/bio/bss_acpt.c | 2 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/bio/bss_conn.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/src/crypto/bio/bss_acpt.c b/src/lib/libssl/src/crypto/bio/bss_acpt.c index 5507a53a2f..04bfb6fb9d 100644 --- a/src/lib/libssl/src/crypto/bio/bss_acpt.c +++ b/src/lib/libssl/src/crypto/bio/bss_acpt.c | |||
| @@ -172,7 +172,7 @@ static void acpt_close_socket(BIO *bio) | |||
| 172 | c=(BIO_ACCEPT *)bio->ptr; | 172 | c=(BIO_ACCEPT *)bio->ptr; |
| 173 | if (c->accept_sock != -1) | 173 | if (c->accept_sock != -1) |
| 174 | { | 174 | { |
| 175 | shutdown(c->accept_sock,2); | 175 | shutdown(c->accept_sock, SHUT_RDWR); |
| 176 | close(c->accept_sock); | 176 | close(c->accept_sock); |
| 177 | c->accept_sock=-1; | 177 | c->accept_sock=-1; |
| 178 | bio->num=-1; | 178 | bio->num=-1; |
diff --git a/src/lib/libssl/src/crypto/bio/bss_conn.c b/src/lib/libssl/src/crypto/bio/bss_conn.c index bdf540030c..42ddf1f4aa 100644 --- a/src/lib/libssl/src/crypto/bio/bss_conn.c +++ b/src/lib/libssl/src/crypto/bio/bss_conn.c | |||
| @@ -375,7 +375,7 @@ static void conn_close_socket(BIO *bio) | |||
| 375 | { | 375 | { |
| 376 | /* Only do a shutdown if things were established */ | 376 | /* Only do a shutdown if things were established */ |
| 377 | if (c->state == BIO_CONN_S_OK) | 377 | if (c->state == BIO_CONN_S_OK) |
| 378 | shutdown(bio->num,2); | 378 | shutdown(bio->num, SHUT_RDWR); |
| 379 | close(bio->num); | 379 | close(bio->num); |
| 380 | bio->num=-1; | 380 | bio->num=-1; |
| 381 | } | 381 | } |
