From ff52b8b4f37eeb4e0bfafb00d403f28395c2c957 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 2 Jul 2017 15:43:57 +0200 Subject: [PATCH] Fix handling retransmitted data when the receive buffer is full. --- utcp.c | 3 --- 1 file changed, 3 deletions(-) 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; -- 2.39.5