From 702f3716075528d6ad390615b5df9b79264b40bb Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sat, 19 Oct 2019 20:01:25 +0200 Subject: fixed transport buf free/flag set interface --- code/ecp/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'code/ecp/core.c') diff --git a/code/ecp/core.c b/code/ecp/core.c index b9efec4..77b7a96 100644 --- a/code/ecp/core.c +++ b/code/ecp/core.c @@ -1215,7 +1215,7 @@ ssize_t ecp_unpack(ECPSocket *sock, ECPNetAddr *addr, ECPConnection *parent, ECP (payload[2] << 8) | \ (payload[3]); - if ((payload[ECP_SIZE_PLD_HDR] & ECP_MTYPE_MASK) < ECP_MAX_MTYPE_SYS) ecp_tr_buf_free(bufs, ECP_SEND_FLAG_MORE); + if ((payload[ECP_SIZE_PLD_HDR] & ECP_MTYPE_MASK) < ECP_MAX_MTYPE_SYS) ecp_tr_release(bufs->packet, 1); if (conn == NULL) { if (payload[ECP_SIZE_PLD_HDR] == ECP_MTYPE_OPEN_REQ) { is_new = 1; -- cgit v1.2.3