From c35424eda3acc034632d1b72a2f5b7c69cd65722 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Fri, 8 Apr 2022 04:42:28 +0200 Subject: fixed frag bug --- ecp/src/ecp/ext/frag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ecp/src') diff --git a/ecp/src/ecp/ext/frag.c b/ecp/src/ecp/ext/frag.c index ce87d81..58941ba 100644 --- a/ecp/src/ecp/ext/frag.c +++ b/ecp/src/ecp/ext/frag.c @@ -83,8 +83,8 @@ ssize_t ecp_pld_defrag(ECPConnection *conn, ecp_seq_t seq, unsigned char mtype, int rv; _conn = ecp_rbuf_get_rbconn(conn); - if (conn) iter = ecp_frag_iter_get(_conn); - if (iter == NULL) ECP_ERR_ITER; + if (_conn) iter = ecp_frag_iter_get(_conn); + if (iter == NULL) ECP_ERR; rv = ecp_pld_get_frag(payload, pld_size, &frag_cnt, &frag_tot, &frag_size); if (rv) return ECP_ERR; -- cgit v1.2.3