From 52cf181f441bb969ca20d8a444281d66d7e60271 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Thu, 9 Jul 2020 16:22:19 -0400 Subject: [PATCH] Fix: send/received actual size is overwritten by 'expected' size MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Observed issue ============== None. Cause ===== None. Solution ======== Return the actual send/received size. Caller code correctly handles partial send/receive. Known drawbacks ========= None Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau Change-Id: Ie52c39d0ab778108e3fde1b2375c0535caec97b1 --- src/common/unix.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/unix.c b/src/common/unix.c index 37bb1a711..141e85233 100644 --- a/src/common/unix.c +++ b/src/common/unix.c @@ -263,7 +263,7 @@ retry: goto end; } } - ret = len; + end: return ret; } @@ -362,7 +362,6 @@ retry: goto end; } } - ret = len; end: return ret; } -- 2.34.1