diff options
author | Uros Majstorovic <majstor@majstor.org> | 2022-04-08 04:42:28 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2022-04-08 04:42:28 +0200 |
commit | c35424eda3acc034632d1b72a2f5b7c69cd65722 (patch) | |
tree | 9311fcf30f1c7efeb0dc8bbf736d3f7e6897a01d /ecp | |
parent | eb4833fc5dddd755c974f5ac7a8b4829c95ffa7b (diff) |
fixed frag bug
Diffstat (limited to 'ecp')
-rw-r--r-- | ecp/src/ecp/ext/frag.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |