From: Jonathan Rajotte Date: Thu, 9 Jul 2020 20:22:19 +0000 (-0400) Subject: Fix: send/received actual size is overwritten by 'expected' size X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=5b86bd5e6c2e05f3a6296fd569d824f03d5e7857 Fix: send/received actual size is overwritten by 'expected' size 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 --- 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; }