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-Tag: v2.12.2~9 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ef910e6910414d9918dc8bcf9230d9278ae45807;p=lttng-tools.git 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 df92b7a06..82fc68d66 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; }