diff options
author | Uros Majstorovic <majstor@majstor.org> | 2019-10-19 20:01:25 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2019-10-19 20:01:25 +0200 |
commit | 702f3716075528d6ad390615b5df9b79264b40bb (patch) | |
tree | c00d10a2920eeb26b15d365c191d56f4845c3b11 /code/ecp/core.c | |
parent | 3cbb9793bf5645f400545aeef904a48fe5dca64c (diff) |
fixed transport buf free/flag set interface
Diffstat (limited to 'code/ecp/core.c')
-rw-r--r-- | code/ecp/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |