diff options
Diffstat (limited to 'src/testcurl/https/test_https_time_out.c')
-rw-r--r-- | src/testcurl/https/test_https_time_out.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testcurl/https/test_https_time_out.c b/src/testcurl/https/test_https_time_out.c index cafe5545..16b171ac 100644 --- a/src/testcurl/https/test_https_time_out.c +++ b/src/testcurl/https/test_https_time_out.c | |||
@@ -62,6 +62,7 @@ test_tls_session_time_out (gnutls_session_t session) | |||
62 | if (ret < 0) | 62 | if (ret < 0) |
63 | { | 63 | { |
64 | fprintf (stderr, "Error: %s\n", MHD_E_FAILED_TO_CONNECT); | 64 | fprintf (stderr, "Error: %s\n", MHD_E_FAILED_TO_CONNECT); |
65 | close (sd); | ||
65 | return -1; | 66 | return -1; |
66 | } | 67 | } |
67 | 68 | ||
@@ -69,6 +70,7 @@ test_tls_session_time_out (gnutls_session_t session) | |||
69 | if (ret < 0) | 70 | if (ret < 0) |
70 | { | 71 | { |
71 | fprintf (stderr, "Handshake failed\n"); | 72 | fprintf (stderr, "Handshake failed\n"); |
73 | close (sd); | ||
72 | return -1; | 74 | return -1; |
73 | } | 75 | } |
74 | 76 | ||
@@ -79,6 +81,7 @@ test_tls_session_time_out (gnutls_session_t session) | |||
79 | if (send (sd, "", 1, 0) == 0) | 81 | if (send (sd, "", 1, 0) == 0) |
80 | { | 82 | { |
81 | fprintf (stderr, "Connection failed to time-out\n"); | 83 | fprintf (stderr, "Connection failed to time-out\n"); |
84 | close (sd); | ||
82 | return -1; | 85 | return -1; |
83 | } | 86 | } |
84 | 87 | ||