network

low level network subjects
Log | Files | Refs | Submodules | README | git clone https://git.ne02ptzero.me/git/network

commit 3f7cee3b8eaf9553cf5bc828b100d76954b09f43
parent 1ed65e944045598b8e38ade35dcae3fa18e5afb4
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Tue,  2 May 2017 14:57:38 +0200

Fix(Tests): Fix an infinite loop on dead connection

Diffstat:
Msrc/client_test.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/client_test.c b/src/client_test.c @@ -99,6 +99,7 @@ TEST(connect_1) { /* Connect to the server */ if (mbedtls_net_connect(&sockfd, g_ip, g_port, MBEDTLS_NET_PROTO_TCP) != 0) { + sockfd.fd = 0; TEST_ASSERT(false, "Cannot Connect to the server"); }