From: Guus Sliepen Date: Sun, 2 Jul 2017 13:43:57 +0000 (+0200) Subject: Fix handling retransmitted data when the receive buffer is full. X-Git-Url: http://git.meshlink.io/?p=utcp;a=commitdiff_plain;h=ff52b8b4f37eeb4e0bfafb00d403f28395c2c957 Fix handling retransmitted data when the receive buffer is full. --- diff --git a/utcp.c b/utcp.c index b0ba054..6b882c6 100644 --- a/utcp.c +++ b/utcp.c @@ -142,9 +142,6 @@ static int32_t seqdiff(uint32_t a, uint32_t b) { // Store data into the buffer static ssize_t buffer_put_at(struct buffer *buf, size_t offset, const void *data, size_t len) { - if(buf->maxsize <= buf->used) - return 0; - debug("buffer_put_at %lu %lu %lu\n", (unsigned long)buf->used, (unsigned long)offset, (unsigned long)len); size_t required = offset + len;