diff options
| author | 2014-04-14 00:00:08 +0000 | |
|---|---|---|
| committer | 2014-04-14 00:00:08 +0000 | |
| commit | 244f535c276174da417c11e014a1c4b923b968b7 (patch) | |
| tree | 6ff986ee4e44d02c8d862e4b0dfdff51ca55d555 /lib/libssl/src | |
| parent | Use shutdown(s, SHUT_RDWR) instead of shutdown(s, 2). (diff) | |
| download | wireguard-openbsd-244f535c276174da417c11e014a1c4b923b968b7.tar.xz wireguard-openbsd-244f535c276174da417c11e014a1c4b923b968b7.zip | |
two SHUTDOWN2 got away; noticed by beck
Diffstat (limited to 'lib/libssl/src')
| -rw-r--r-- | lib/libssl/src/crypto/bio/bss_dgram.c | 3 | ||||
| -rw-r--r-- | lib/libssl/src/crypto/bio/bss_sock.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/libssl/src/crypto/bio/bss_dgram.c b/lib/libssl/src/crypto/bio/bss_dgram.c index d09c0fc33e3..67a13ae845d 100644 --- a/lib/libssl/src/crypto/bio/bss_dgram.c +++ b/lib/libssl/src/crypto/bio/bss_dgram.c @@ -253,7 +253,8 @@ static int dgram_clear(BIO *a) { if (a->init) { - SHUTDOWN2(a->num); + shutdown(a->num, SHUT_RDWR); + close(a->num); } a->init=0; a->flags=0; diff --git a/lib/libssl/src/crypto/bio/bss_sock.c b/lib/libssl/src/crypto/bio/bss_sock.c index 07e52ec4005..eb2965970c7 100644 --- a/lib/libssl/src/crypto/bio/bss_sock.c +++ b/lib/libssl/src/crypto/bio/bss_sock.c @@ -124,7 +124,8 @@ static int sock_free(BIO *a) { if (a->init) { - SHUTDOWN2(a->num); + shutdown(a->num, SHUT_RDWR); + close(a->num); } a->init=0; a->flags=0; |
