Diff between a7b1ac9207f1c001feea0ca175d646380d0f5080 and 259d1febc93d3c2193c7118c76f199ad68cde6fa

Changed Files

File Additions Deletions Status
emulator/b1ee.c +1 -0 modified

Full Patch

diff --git a/emulator/b1ee.c b/emulator/b1ee.c
index 17a60fc..3fb867d 100644
--- a/emulator/b1ee.c
+++ b/emulator/b1ee.c
@@ -203,6 +203,7 @@ static int do_connect(const char *node, const char *service)
 
 		if (connect(fd, res->ai_addr, res->ai_addrlen) < 0) {
 			perror("Failed to connect");
+			close(fd);
 			continue;
 		}