diff options
Diffstat (limited to 'src/lib/libcrypto/bio/bss_sock.c')
-rw-r--r-- | src/lib/libcrypto/bio/bss_sock.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bio/bss_sock.c b/src/lib/libcrypto/bio/bss_sock.c index d336b99fe8..8ce80ef68d 100644 --- a/src/lib/libcrypto/bio/bss_sock.c +++ b/src/lib/libcrypto/bio/bss_sock.c | |||
@@ -95,6 +95,7 @@ static BIO_METHOD methods_sockp= | |||
95 | sock_ctrl, | 95 | sock_ctrl, |
96 | sock_new, | 96 | sock_new, |
97 | sock_free, | 97 | sock_free, |
98 | NULL, | ||
98 | }; | 99 | }; |
99 | 100 | ||
100 | BIO_METHOD *BIO_s_socket(void) | 101 | BIO_METHOD *BIO_s_socket(void) |
@@ -112,6 +113,7 @@ static BIO_METHOD methods_fdp= | |||
112 | fd_ctrl, | 113 | fd_ctrl, |
113 | fd_new, | 114 | fd_new, |
114 | fd_free, | 115 | fd_free, |
116 | NULL, | ||
115 | }; | 117 | }; |
116 | 118 | ||
117 | BIO_METHOD *BIO_s_fd(void) | 119 | BIO_METHOD *BIO_s_fd(void) |
@@ -163,8 +165,7 @@ static int fd_free(BIO *a) | |||
163 | if (a->init) | 165 | if (a->init) |
164 | { | 166 | { |
165 | #ifndef BIO_FD | 167 | #ifndef BIO_FD |
166 | shutdown(a->num,2); | 168 | SHUTDOWN2(a->num); |
167 | closesocket(a->num); | ||
168 | #else /* BIO_FD */ | 169 | #else /* BIO_FD */ |
169 | close(a->num); | 170 | close(a->num); |
170 | #endif | 171 | #endif |