diff options
Diffstat (limited to 'ecp/src')
-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; |