aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-12-12 19:55:07 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-12-12 20:39:09 +0300
commit993fd001ab578ecfc9edd2ffad6b18ab8f911b90 (patch)
tree767b66a4b837df230e6823960433565ad2f382af /src/testcurl
parentdab616259e454918a18ced8f37b60c530f218579 (diff)
downloadlibmicrohttpd-993fd001ab578ecfc9edd2ffad6b18ab8f911b90.tar.gz
libmicrohttpd-993fd001ab578ecfc9edd2ffad6b18ab8f911b90.zip
test_https_time_out: fixed broken check
The old check "send () == 0" was always wrong. send() never returns zero. As a result, the test checks nothing.
Diffstat (limited to 'src/testcurl')
-rw-r--r--src/testcurl/https/test_https_time_out.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testcurl/https/test_https_time_out.c b/src/testcurl/https/test_https_time_out.c
index ca214315..e77c8c66 100644
--- a/src/testcurl/https/test_https_time_out.c
+++ b/src/testcurl/https/test_https_time_out.c
@@ -88,7 +88,7 @@ test_tls_session_time_out (gnutls_session_t session, int port)
88 88
89 /* check that server has closed the connection */ 89 /* check that server has closed the connection */
90 /* TODO better RST trigger */ 90 /* TODO better RST trigger */
91 if (send (sd, "", 1, 0) == 0) 91 if (send (sd, "", 1, 0) >= 0)
92 { 92 {
93 fprintf (stderr, "Connection failed to time-out\n"); 93 fprintf (stderr, "Connection failed to time-out\n");
94 MHD_socket_close_chk_ (sd); 94 MHD_socket_close_chk_ (sd);