From 5b86bd5e6c2e05f3a6296fd569d824f03d5e7857 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 6cdc75996..0409750c3 100644 --- a/src/common/unix.c +++ b/src/common/unix.c @@ -253,7 +253,7 @@ retry: goto end; } } - ret = len; + end: return ret; } @@ -352,7 +352,6 @@ retry: goto end; } } - ret = len; end: return ret; } -- 2.34.1