diff options
Diffstat (limited to 'src/testcurl/https/tls_authentication_test.c')
-rw-r--r-- | src/testcurl/https/tls_authentication_test.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testcurl/https/tls_authentication_test.c b/src/testcurl/https/tls_authentication_test.c index 7f576654..6e8cf0af 100644 --- a/src/testcurl/https/tls_authentication_test.c +++ b/src/testcurl/https/tls_authentication_test.c | |||
@@ -284,12 +284,14 @@ setupTestFile () | |||
284 | { | 284 | { |
285 | fprintf (stderr, "Error: failed to write `%s. %s'\n", | 285 | fprintf (stderr, "Error: failed to write `%s. %s'\n", |
286 | test_file_name, strerror (errno)); | 286 | test_file_name, strerror (errno)); |
287 | fclose (test_fd); | ||
287 | return NULL; | 288 | return NULL; |
288 | } | 289 | } |
289 | if (fflush (test_fd)) | 290 | if (fflush (test_fd)) |
290 | { | 291 | { |
291 | fprintf (stderr, "Error: failed to flush test file stream. %s\n", | 292 | fprintf (stderr, "Error: failed to flush test file stream. %s\n", |
292 | strerror (errno)); | 293 | strerror (errno)); |
294 | fclose (test_fd); | ||
293 | return NULL; | 295 | return NULL; |
294 | } | 296 | } |
295 | 297 | ||
@@ -312,14 +314,14 @@ setup_ca_cert () | |||
312 | { | 314 | { |
313 | fprintf (stderr, "Error: failed to write `%s. %s'\n", | 315 | fprintf (stderr, "Error: failed to write `%s. %s'\n", |
314 | ca_cert_file_name, strerror (errno)); | 316 | ca_cert_file_name, strerror (errno)); |
315 | fclose (test_fd); | 317 | fclose (fd); |
316 | return NULL; | 318 | return NULL; |
317 | } | 319 | } |
318 | if (fflush (fd)) | 320 | if (fflush (fd)) |
319 | { | 321 | { |
320 | fprintf (stderr, "Error: failed to flush ca cert file stream. %s\n", | 322 | fprintf (stderr, "Error: failed to flush ca cert file stream. %s\n", |
321 | strerror (errno)); | 323 | strerror (errno)); |
322 | fclose (test_fd); | 324 | fclose (fd); |
323 | return NULL; | 325 | return NULL; |
324 | } | 326 | } |
325 | 327 | ||