diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-08-02 17:11:48 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-08-02 17:11:48 +0000 |
commit | 58b30e7e5e90ff87ef932ea4e47efe16e2609188 (patch) | |
tree | d28e3d8afbbf1ceee56b1e450b56d505481f8d28 /src/testcurl/https/test_tls_extensions.c | |
parent | 07b65da99f9ff0e6335bb573f5e915ed39d8ae25 (diff) | |
download | libmicrohttpd-58b30e7e5e90ff87ef932ea4e47efe16e2609188.tar.gz libmicrohttpd-58b30e7e5e90ff87ef932ea4e47efe16e2609188.zip |
fix #3926: ignore close() errors other than EBADF
Diffstat (limited to 'src/testcurl/https/test_tls_extensions.c')
-rw-r--r-- | src/testcurl/https/test_tls_extensions.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testcurl/https/test_tls_extensions.c b/src/testcurl/https/test_tls_extensions.c index 8b192aa1..b13d8aeb 100644 --- a/src/testcurl/https/test_tls_extensions.c +++ b/src/testcurl/https/test_tls_extensions.c | |||
@@ -188,8 +188,8 @@ test_hello_extension (gnutls_session_t session, extensions_t exten_t, | |||
188 | } | 188 | } |
189 | 189 | ||
190 | cleanup: | 190 | cleanup: |
191 | if (sd != -1) | 191 | if (-1 != sd) |
192 | close (sd); | 192 | MHD_socket_close_ (sd); |
193 | gnutls_free (cbc.buf); | 193 | gnutls_free (cbc.buf); |
194 | return ret; | 194 | return ret; |
195 | } | 195 | } |
@@ -206,7 +206,7 @@ main (int argc, char *const *argv) | |||
206 | gnutls_datum_t cert; | 206 | gnutls_datum_t cert; |
207 | gnutls_certificate_credentials_t xcred; | 207 | gnutls_certificate_credentials_t xcred; |
208 | 208 | ||
209 | const int ext_arr[] = { | 209 | const int ext_arr[] = { |
210 | GNUTLS_EXTENSION_SERVER_NAME, | 210 | GNUTLS_EXTENSION_SERVER_NAME, |
211 | -1 | 211 | -1 |
212 | }; | 212 | }; |