summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bss_dgram.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bio/bss_dgram.c')
-rw-r--r--src/lib/libcrypto/bio/bss_dgram.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bio/bss_dgram.c b/src/lib/libcrypto/bio/bss_dgram.c
index d09c0fc33e..67a13ae845 100644
--- a/src/lib/libcrypto/bio/bss_dgram.c
+++ b/src/lib/libcrypto/bio/bss_dgram.c
@@ -253,7 +253,8 @@ static int dgram_clear(BIO *a)
253 { 253 {
254 if (a->init) 254 if (a->init)
255 { 255 {
256 SHUTDOWN2(a->num); 256 shutdown(a->num, SHUT_RDWR);
257 close(a->num);
257 } 258 }
258 a->init=0; 259 a->init=0;
259 a->flags=0; 260 a->flags=0;