diff options
author | Uros Majstorovic <majstor@majstor.org> | 2017-09-06 18:19:00 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2017-09-06 18:19:00 +0200 |
commit | c129b10bf7c851d94002767aa09e06c526cacb7d (patch) | |
tree | a0ca2c8d603a233c43c888dddb4ee541d4ba34e5 /code/core/rbuf_recv.c | |
parent | b83e58e21ea7dda57ddfda47bd1539d15abe687f (diff) |
frad/defrag implemented
Diffstat (limited to 'code/core/rbuf_recv.c')
-rw-r--r-- | code/core/rbuf_recv.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/code/core/rbuf_recv.c b/code/core/rbuf_recv.c index 0970f6a..7b90b89 100644 --- a/code/core/rbuf_recv.c +++ b/code/core/rbuf_recv.c @@ -59,7 +59,6 @@ static void msg_flush(ECPConnection *conn) { int rv = ECP_OK; ecp_pts_t msg_pts; ecp_seq_t seq = buf->rbuf.seq_start + i; - unsigned char mtype = ecp_msg_get_type(buf->rbuf.msg[idx].msg); unsigned char frag_tot; unsigned char frag_cnt; @@ -279,9 +278,6 @@ ssize_t ecp_rbuf_recv_store(ECPConnection *conn, ecp_seq_t seq, unsigned char *m int do_ack = 0; unsigned char mtype; - if (buf == NULL) return ECP_ERR; - if (msg_size < 1) return ECP_ERR_MIN_MSG; - mtype = ecp_msg_get_type(msg) & ECP_MTYPE_MASK; if ((mtype == ECP_MTYPE_RBACK) || (mtype == ECP_MTYPE_RBFLUSH)) return ecp_msg_handle(conn, seq, msg, msg_size); |