From 65950182afb58a8bc41368e561ff9d1676660681 Mon Sep 17 00:00:00 2001
From: Uros Majstorovic <majstor@majstor.org>
Date: Sun, 21 Apr 2024 19:39:08 +0200
Subject: added gc flag for inbound connections

---
 ecp/test/init.c       | 5 ++++-
 ecp/test/init_vconn.c | 1 +
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ecp/test/init.c b/ecp/test/init.c
index b0d91d1..069aad3 100644
--- a/ecp/test/init.c
+++ b/ecp/test/init.c
@@ -11,7 +11,10 @@ static ECPConnection *conn_new(ECPSocket *sock, unsigned char type) {
     ECPConnection *conn;
 
     conn = malloc(sizeof(ECPConnection));
-    if (conn) ecp_conn_init(conn, sock, type);
+    if (conn) {
+        ecp_conn_init(conn, sock, type);
+        ecp_conn_set_flags(conn, ECP_CONN_FLAG_GC);
+    }
     return conn;
 }
 
diff --git a/ecp/test/init_vconn.c b/ecp/test/init_vconn.c
index 149b57a..64e9631 100644
--- a/ecp/test/init_vconn.c
+++ b/ecp/test/init_vconn.c
@@ -37,6 +37,7 @@ static ECPConnection *conn_new(ECPSocket *sock, unsigned char type) {
         }
     }
 
+    if (conn) ecp_conn_set_flags(conn, ECP_CONN_FLAG_GC);
     return conn;
 }
 
-- 
cgit v1.2.3